Footer credentials
-
Hello,
Finally my website made with sydney theme is live (www.curiobiotech.com).
I have a few questions:I would like to add a couple of lines in the footer for credentials: 1) for Sydney Theme 2) logomakr. How can I do that?
Thank you
-
Open
footer.phpand look for the following:
<footer id="colophon" class="site-footer" role="contentinfo">...</footer>Inside this block put your custom text. It should look something like this:
<footer id="colophon" class="site-footer" role="contentinfo"> <div class="site-info container"> <a href="<?php echo esc_url( __( 'http://ww.wp.xz.cn/', 'sydney' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'sydney' ), 'WordPress' ); ?></a> <span class="sep"> | </span> <?php printf( __( 'Theme: %2$s by %1$s.', 'sydney' ), 'aThemes', '<a href="https://athemes.com/theme/sydney" rel="designer">Sydney</a>' ); ?> <div id="my-custom-info"> Credential and other information go here... </div> </div><!-- .site-info --> </footer><!-- #colophon -->Let me know if this helps.
Hi Subrata,
Excellent. It worked like a charm. Thanks a lot.
Best regards.
Hi Just came a small problem.
The last sentence is not aligned properly
Please see the screen shot
https://ibb.co/jWmdy5The logomakr should be aligned to centre.
Thanks for the help
Hello there,
Wrap your text with a DIV tag and center it with inline CSS. It should look like this:
<div style="text-align:center;"> Logomakr </div>Regards,
KharisActually there was a step left out: do not edit the theme’s
footer.phpfile. When an update to the theme happens you will lose all of your changes and you would not like that.Instead create and activate a child theme of Sydney.
https://codex.ww.wp.xz.cn/Child_Themes
Once you have the child theme activated then copy the original
footer.phpinto thewp-content/themes/sydney-childdirectory and then edit the copy instead.Thank you for pointing that out, Jan. We have a premade Sydney child theme you can use for starting point instead of creating a child theme from scratch.
Regards,
KharisDear Kharis and Jan – I used the same child them which you pointed.
First downloaded the file added footer.php file into the child theme and uploaded the child theme.
Every thing is great except the alignment.
I would like the following in 3 lines:
© 2017 Curio Biotech SA
Powered by WordPress Sydney Theme (link this to: https://ww.wp.xz.cn/themes/sydney/)
Logomakr (Link this to: http://www.logomakr.com)with centre aligned.
I appreciate if you can send me the code that i can add to the footer child theme.
Thank you.
In your footer credit, use this HTML code:
<div style="text-align: center;"> <div>First line</div> <div>Second line</div> <div>Third line</div> </div>Regards,
KharisDear Kharis,
Thank you. Worked great with your new code.Please see the screen shot.
It would be great if one can reduce the space between each line. Can you please send me code to adjust the space between each line.
Great day.
KesavaDear Kesava,
To reduce the spaces on each line, you’ll need to add this CSS code to override the default line height. Adjust the value if needed.
.site-footer { line-height: 20px; }To apply to your site put it into Appearance > Customize > Additional CSS in your site dashboard.
Regards,
KharisThank you Kharis. It worked great.
You guys are giving a great support.
I am happy with 25px.Best regards,
KesavaYou’re most welcome here Kesava!
Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.
Regards,
Kharis
The topic ‘Footer credentials’ is closed to new replies.
