• Resolved jlar0ch3

    (@jlar0ch3)


    Hello,

    I am wondering how to remove the sidebar from all posts. I also want to remove the information about who posted and when (the top part that says “DECEMBER 21, 2015 By theadmin under stories” for example, along with the big section on the bottom that shows who posted.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Did you include a link to your site, so that others can see the problem?

    You have to customize the template files and remove <?php sidebar() ?> from single.php file to remove the side bar and also hide author information like date posted etc.

    Make sure create child theme to do the changes.

    Thread Starter jlar0ch3

    (@jlar0ch3)

    Thanks for the quick reply. I had originally removed <?php sidebar() ?> from page.php – THANKS! I forgot it should be single.php instead.

    The test site is up at undocublack.currentperspectives.org and you can see an example of a page here: https://undocublack.currentperspectives.org/2015/12/21/gabrielle-jackson/

    I also need to make the page full-width now that the sidebar has been removed.

    Thanks!

    Oh, and I am using a child theme. Always do!

    in the same php file you removed the sidebar from, look for this line of code:

    <div class="main col-md-9">

    and change it to this:

    <div class="main col-md-12">

    Thread Starter jlar0ch3

    (@jlar0ch3)

    Thanks Mr. Case. col-md-12 turns single.php to full width.

    I’ll tinker around and try to remove the datestamp along with the author info now…

    Thread Starter jlar0ch3

    (@jlar0ch3)

    Alright. I figured it out. I removed the datestamp and the author info with two CSS modifications in my child theme. Here they are:

    .entry-author{
    display: none;
    }
    .entry-meta{
    display: none;
    }

    The first removes the author information at the bottom of single posts. The second removes the datestamp and author info at the top of single posts (just under the title of the post).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove sidebar and poster info from all posts’ is closed to new replies.