Support » Themes and Templates » Adding sidebar divs in underscores (_s) theme

  • I am new to creating my own themes and I am starting out with the underscores theme. I am wondering if anyone can help me with a very simple starter problem? How do I add another div into the 2-column layout with sidebar on the right (or left)? I want the div to fall below the main content, and not be a sidebar at all. I assume I add it into the sidebar.php and what do I need to add into the functions.php? Do I register another sidebar in functions.php? “Tertiary” is there in the underscores CSS but not in the HTML or template files.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s easy. I just learn to do that from Twenty Ten and Twenty Eleven.
    – register sidebar in function.php
    – call the sidebar in wherever I want to place.
    – styling with css.
    Note: #tertiary in the layout is example for tree columns layout, so if I want to make fall below main content I modify the css.
    I’m sorry, I’m also a beginner and do not speak English.

    paulwpxp

    (@paulwp)

    Font hero

    msrosyidi is right.

    – register sidebar in function.php
    – call the sidebar in wherever I want to place.
    – styling with css.

    on the point #2 just call it inside the .entry-content after the the_content() in content-single.php and/or content.php and/or content-page.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding sidebar divs in underscores (_s) theme’ is closed to new replies.