• I do not want to show sidebar, I want that single to be equal to the pages! I do not want to sidebar, I do not want date, I do not want to gravat, please! what I do? Where I modify

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you want to remove sidebar from single post page and make the content section centralized, I mean full width single post page in twenty sixteen theme. Also here i showed how to increase post section wide

    .single-post #primary {
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    }
    .single-post #secondary {
    display: none !important;
    }

    Same way if you want full width page in twenty sixteen theme, try this code

    .page-template-default #primary {
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    }
    .page-template-default #secondary {
    display: none !important;
    }

    I put a link below to the page I favorited/bookmarked for all of my twenty sixteen modifications…all are done using CSS! Bookmark / Favorite this link, you’re welcome! ??

    WordPress Twenty Sixteen (2016) theme modifications : Change Colors, titles, metas,sidebar, fonts,header,footer, menus etc using css.

    • This reply was modified 7 years, 3 months ago by nahtee.

    If you want to remove footer credit from the twenty sixteen theme.

    .site-info {
    visibility: hidden !important;
    }

    If you want to remove the author from twenty sixteen theme.

    .author {
        display: none;
    }

    Remove date:

    .entry-date {
    display: none;
    }

    Remove Posted On:

    .posted-on {
    display: none;
    }

    I hope all of this helps…

    Thread Starter jafp

    (@jafp)

    If I simply apply css, it will not be seen, but in the html higo it is displayed, I want it not to run I want it to completely disappear, I want to remove the php code, then apply its css, please! thank you very much.

    Hope this helps…
    Remove sidebar by editing the php code

    Good luck.

    Thread Starter jafp

    (@jafp)

    Remove sidebar is easy, my problem is that the twenty seexteen do not know where the code of the sidebar of the entries, I do not know, how to remove I do not find that code,

    Make a new template

    Did you even visit the link I posted? They tell exactly where to go and what to look for, all you have to do is read. Or watch the video. Remove sidebar by editing the php code – VIDEO

    For example, in a typical WordPress theme you may need to edit index.php, page.php, single.php, archive.php, home.php and so on.

    Open a template file to edit it and then locate the line that looks like this:

    <?php get_sidebar(); ?>
    If your theme comes with multiple sidebars, then you will see different instances of this code with a sidebar name inside the function. For example:

    <?php get_sidebar('footer-widget-area'); ?>
    Delete the line that represents the sidebar that you don’t want to display.
    Now, save and upload the file back to your website. Repeat the process for all template files responsible for displaying different pages on your website.
    Once finished, you can go to your website and see it in action.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Do not show sidebar in single!’ is closed to new replies.