Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter italianbull38

    (@italianbull38)

    any ideas.

    create a custom template for the other page where you dont want to display the sidebar.

    just duplicate the page.php , rename it to page-no-sidebar.php

    then in line one, add this code,

    <?php
    /*
    Template Name: No-sidebar Templtate
    */
    ?>

    and then remove this code:
    <?php get_sidebar(); ?>

    then save,
    go to admin panel, create a new page, then on the right side, select the template “No-sidebar Template”

    i hope this would help.

    after creating the new page, I don’t see anything on the right side that shows a “no-sidebar template”

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I wanna make my sidebar on certain pages and not on others…’ is closed to new replies.