• Resolved riyadenn

    (@riyadenn)


    How can i add/customize css for secondary sidebar-top title? I know i can change sidebar-top title in sidebar-2.php and i want to change format of that title, like font size, align, text-transform, etc. (note: just on secondary sidebar-top title.

    Anyway, it seems the css below doesn’t work to customize sidebar-top title.

    /*  base : sidebar
    /* ------------------------------------ */
    bla bla
    bla bla
    .sidebar-top { padding: 15px 30px; }
    .sidebar-top p { float: left; color: #fff; color: rgba(255,255,255,0.8); font-size: 16px; font-weight: 600; text-transform: uppercase; line-height: 24px; padding: 3px 0; }
    bla bla
    bla bla

Viewing 7 replies - 1 through 7 (of 7 total)
  • bdbrown

    (@bdbrown)

    Hi riyadenn. That’s the theme default css. What doesn’t work? If you want to target just the secondary sidebar you need to use the “.s2” class in front of the other elements.

    Thread Starter riyadenn

    (@riyadenn)

    For Example, i change text-transform to ‘normal’ on css bellow:

    ‘/* base : sidebar
    /* ———————————— */
    bla bla
    bla bla
    .sidebar-top { padding: 15px 30px; }
    .sidebar-top p { float: left; color: #fff; color: rgba(255,255,255,0.8); font-size: 16px; font-weight: 600; text-transform: uppercase; line-height: 24px; padding: 3px 0; }
    bla bla
    bla bla,

    But the sidebar-top still show uppercase. Also if i change font size, it still not change.

    But in this topic, i want to add css to custom just secondary sidebar-top text.

    stephencottontail

    (@stephencottontail)

    “Normal” won’t work; you should use text-transform: none instead. Can you post a link to your site?

    Thread Starter riyadenn

    (@riyadenn)

    My site still on localhost. And attribute ‘none’ still doesn’t work. Also if i change font size to 44 for example, it doesn’t take effect.

    Once again, in this topic, i want to know how to add css to custom text above the secondary sidebar. (Like .s2 sidebar-top {…..})

    stephencottontail

    (@stephencottontail)

    Perhaps we’re referring to different things, then. If I use this code (in a custom CSS plugin or your theme’s built-in custom CSS option)

    .s2 .sidebar-top p {
    	font-size: 44px;
    	text-transform: none;
    }

    I can see that the text “More” has become 44px large and is no longer capitalized.

    Thread Starter riyadenn

    (@riyadenn)

    I’ve tried the above code, but still not working.
    Perhaps this has something to do with this:

    /*  base : sidebar
    /* ------------------------------------ */
    .sidebar { padding-bottom: 10px; position: relative; z-index: 2; }
    .sidebar .pad { padding-left: 20px; padding-right: 20px; }
    .sidebar-top { padding: 15px 30px; }
    .sidebar-top p { float: left; color: #fff; color: rgba(255,255,255,0.8); font-size: 16px; font-weight: 600; text-transform: none; line-height: 24px; padding: 3px 0; }
    .sidebar-toggle { display: none; text-align: center; cursor: pointer; width: 100%; height: 60px;
    -webkit-box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1); }
    .sidebar-toggle i { font-size: 38px; color: #fff; padding: 10px 0; }
    .s1-expand .s1,
    .s2-expand .s2 {-moz-transition: width .2s ease; -webkit-transition: width .2s ease; transition: width .2s ease; }

    Changes in the value of the css above doesn’t seem to take effect.

    Thread Starter riyadenn

    (@riyadenn)

    hello stephencottontail, thank you very much. It’s working now. It seems my localhost have problem before.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘CSS Secondary Sidebar Top Title’ is closed to new replies.