Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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 ticker

    However, 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!

    #667503

    Anyone?
    I just need help to fix the correct selectors :-/

    #667728

    Hi,

    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,
    Yigit

    #667751

    Yigit, you are a life saver – thank you so much!!!

    #667762

    Hey!

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Custom CSS for three custom header widgets?’ is closed to new replies.