• Resolved goldmember

    (@goldmember)


    on my page (https://www.goldcoastchamber.com/wordpress/) i’m unable to figure out how to create a little more space between my last page heading on the left (Contact Us) and the “Upcoming Events” heading.

    “Upcoming Events” is the title for Recent Posts Widget which sits in my Main Sidebar.

    i think it has to do with the leftside H2 in my style sheet but when i mess with the top margin, it has no impact upon the “Upcoming Events” heading.

    #leftside h2 {background-color:inherit; color:#505050; font-size:1.1em; font-weight:bold; text-align:left; margin:15px 0px 0px 0px;}

    please advise. thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think that the widget markup in your theme needs adjusting in functions.php. In register_sidebar(), try using:

    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',

    so that the widget is correctly placed in <li></li> tags with its own class name & id. You’ll then be able to style it correctly. As it stands, it’s outputting invalid markup in your sidebar – making it almost impossible to push the widget further down.

    Thread Starter goldmember

    (@goldmember)

    thanks. so i did that change in functions.php but i’m really not sure how to put in the css. i tried putting this into my css but clearly it didnt work so i cant figure out what should go in place of “#recent-posts-3”

    #recent-posts-3 {margin-top: 50px;}

    please advise. thanks.

    Thread Starter goldmember

    (@goldmember)

    anybody? please advise. thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘need to add space above heading’ is closed to new replies.