Add span class to existing div class
-
Hello,
I have a basic question and hope I’ll find help here.
In the theme I am using I have a top-bar (left and right) containing contact data (phone number and address) including icons:
Sorry for the screenshots, I am developing on a local testmachine only.
Now I would like to add another icon and text after the address (envelope & email address). Using CSS (:after) only added the icon, but due to different font-families I wasn’t able to put the mail address behind it with default font type.
Next I was thinking about adding a class to the existing div class “site-top-bar-left”.Instead of using a child-theme I am using a plugin in which I can store my changes to CSS/PHP/JS files. Therefore I would need to be able to add that span class through my functions.php (as I think PHP is the way to choose, not javascript). But I am not getting it to work. Neither I do know where to add the action, nor how the function needs to look like. I tried several ways, but now I have to admit there still is a long road for me to go to get used to scripting. ?? But I am not giving up and that’s why I refuse to use a plugin.
Does any of you have hints for me guiding me in the right direction?Highly appreciated,
-Bj?rnThe page I need help with: [log in to see the link]
- The topic ‘Add span class to existing div class’ is closed to new replies.