• Resolved luiscastillocr

    (@luiscastillocr)


    Hi.

    I am looking for a theme or a plugin that allow me Include or not the side column for a specific page.

    For example, when you create a page may be there a option like “use side var?” yes/no ?? or something like that.

    Thanks and greetings!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You could create a custom page template and then use something like

    <?php if(is_page"Foobar")) get_sidebar('foobar');
    else get_sidebar();
    ?>
    Thread Starter luiscastillocr

    (@luiscastillocr)

    Thanks for reply, but i need something more easy for my clients, i am still looking for, I’ll have to do it myself :P.

    If someone knows something like i looking for please reply here!!

    Custom field?

    If you call the field something obvious like i dunno “Display sidebar” you could use conditional statements to display the sidebar if the custom field is set…

    It would mean the poster would need to know how to add custom fields to posts/pages, but it would be a pretty easy approach..

    Thread Starter luiscastillocr

    (@luiscastillocr)

    Thanks for trying to help, here I found a solution for the pages but i need something like that for a post pages too.

    I am still looking for..

    Thanks!

    Thread Starter luiscastillocr

    (@luiscastillocr)

    After research all the day i found the solution:

    Here explain how add a custom template for pages and post-pages

    Here is the plugin to manage the custom templates for the post pages

    The dafault template file of post-pages is single.php
    The dafault template file of pages is page.php

    Add this code for single-pages template at the top of the file

    <?php
    /*
    Template Name: custom_simple_template_name
    */
    ?>

    Add this code for post-pages template at the top of the file

    <?php
    /*
    Template Name Posts: custom_post_template_name
    */
    ?>

    I hope this help someone else.

    Well i am looking for something like that for the category pages, if I find something, I will post it here

    greetings…

    Uh?

    You could create a custom page template

    That’s what I suggested originally!

    Thread Starter luiscastillocr

    (@luiscastillocr)

    Thanks for try to help me esmi, but your code posted above is not exactly the same thing that i found, anyway, thanks!!

    by the way, do you know how to do the same thing with the categories page? ??

    Thanks…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Include or not the menu columns for each page’ is closed to new replies.