CCS Name?
-
Hi,
I d like to use my style.css to modify the text (for example the link hover color) but I don t know how to do it.
I tried with .footer-text {} but it didn t work..
Thanks in advance!
-
The plugin does not add any HTML classes or elements by default. You can add them in your theme’s
footer.phpfile where you have thefooter_text()function.Either around the function:
<div class="footer-text"><?php footer_text(); ?></div>Or you can pass before and after text to the function itself:
<?php footer_text( '', '<div class="footer-text">', '</div>' ); ?>Thanks for replying so fast
I ve tried both options but it didn t work..Can you send me the contents of your footer.php file?
Don’t paste it in the forum, instead upload it to http://gist.github.com or http://pastebin.com and paste the link in here.
You can use this replacment code: https://gist.github.com/bungeshea/5cd77c58caaa18522821
Now you can use the
.footer-textclass in your CSS.Sorry for replying so late. I ve tried to use this code but it still doesn t want to work… But many thanks for your help.
If you prefer, maybe you could just say me how to change the visited, hover and active color of the links I put in the footer, in HTML.
Here is a part of my code in Footer-Text:<p style=”font-family: open sans; text-align: center; font-size: 11px;”>
[…] </p>Sorry it’s taken me so long to reply, I’ve been pretty busy the past week.
There is no way to style pseudo states in inline styles. However, what you can do is add a class name in the footer text input, and then style it in your style.css.
In the footer text box:
<p class="some-footer-class'>[...]</p>In style.css:
.some-footer-class { font-family: Open Sans; text-align: center; font-size: 11px; } .some-footer-class:visited { color: purple; } .some-footer-class:hover { color: red; }Perfect.
Thank you!
The topic ‘CCS Name?’ is closed to new replies.