-
AuthorPosts
-
July 29, 2016 at 12:02 pm #666529
Hi guys,
So I have three custom widgets int he header. I currently have these two:
A) Shows a small digital clock via the ‘Date and Time’ widget plugin
B) Shows a small stock tickerHowever, I need a third one, which needs to be displayed above the top one (A)).
C) Needs to show todays date via the ‘Date and Time’ widget plugin used in (A).The three widgets should be aligned directly under each other. Now, I have already added the third header as a widget named ‘header3’, and it is also in my functions.php file. The widget is displaying in the header, but it is apparently using the same CSS as the one in (A).
I cannot seem to find the right selector so that I can move the new, third widget onto its own line.My CSS is as follows:
/* Header Widget header1: clock CSS */ #header .widget { left: 89%; padding-top: 0px; position: absolute; top: -50%; padding-bottom: 0px; z-index: 1; } /* Header Widget header2 Stock Ticker */ #header #text-8 { left: 90%; padding-top: 0px; position: absolute; top: 0%; padding-bottom: 0px; z-index: 1; } /* Header Widget header3: Date */ #header3 .widget { left: 89%; padding-top: 0px; position: absolute; top: -75%; padding-bottom: 0px; z-index: 1; }
What selector should I apply to the last widget’s CSS?
Thanks!
August 2, 2016 at 1:22 am #667503Anyone?
I just need help to fix the correct selectors :-/August 2, 2016 at 4:27 pm #667728Hi,
Sorry for the late reply!
Please use following selector to target your third widget in the header#header #date-time-3 { left: 89%; padding-top: 0px; position: absolute; top: -75%; padding-bottom: 0px; z-index: 1; }
Best regards,
YigitAugust 2, 2016 at 5:22 pm #667751Yigit, you are a life saver – thank you so much!!!
August 2, 2016 at 5:52 pm #667762Hey!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Custom CSS for three custom header widgets?’ is closed to new replies.