• I can customize and define if a normalpage (not the homepage) has a sidebar or not.

    I need most sides without sidebare and just some with a sidebar.

    In my old theme this was done by editing the pages and define it in the page attribute settings. Within Alante there is not template for a side (boxed) without a sidebar.

    Here’s the layout of both versions which Ilike to switch per PAGE: https://dlgo.de/layout-sidebar.jpg

    My fisrst steps

    – I have set that all pages shows a sidebar
    – Then I have build a template no-sidebar.php with the default code from page .php

    The thing is, that I don’t know how to change the code. Here’s the default code:

    get_header(); ?>
    	<?php while ( have_posts() ) : the_post(); ?>
    		<?php get_template_part( 'content', 'page' ); ?>
    		<?php alante_thinkup_input_allowcomments(); ?>
    	<?php endwhile; ?>
    <?php get_footer(); ?>
    • This topic was modified 4 years, 8 months ago by hatschiii.
    • This topic was modified 4 years, 8 months ago by hatschiii.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter hatschiii

    (@hatschiii)

    The point is, that it looks like that ‘content’ is given out what is defined in the settings (with or without sidebar).

    Is it possible to replace content with content2 and define the layout for content2?

    Thread Starter hatschiii

    (@hatschiii)

    Hope someone can help me…

    Thread Starter hatschiii

    (@hatschiii)

    Alante si a great theme… do I realy need to switch to anothere theme because of this issue?

    Thread Starter hatschiii

    (@hatschiii)

    I found this…. $classes[] = ‘layout-sidebar-none’;

    Think I need to define this somewhere and somehow in my no-sidebar.php template file… but I don’t know how 🙁 Or do I need to place this in content.php, page.php or content-page.php? In this case I would copy this file and change get_template_part( ‘content’, ‘page’ ) to get_template_part( ‘content2’, ‘page2’ )

    Thread Starter hatschiii

    (@hatschiii)

    Looks like I’m talking with myself 🙁

    Thread Starter hatschiii

    (@hatschiii)

    Ok, I installed a plugin to aplly individual css code to a page

    https://de.wordpress.org/plugins/wp-add-custom-css/

    Then I edited the page wich should have no sidebar and added the following custom css code:

    .sidebar-core {
    display: none;
    }
    .layout-sidebar-right #main {
    width: 100%;
    }

    Thread Starter hatschiii

    (@hatschiii)

    …thanks for NOT SUPPORTING me

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Individual PAGES without a sidebar’ is closed to new replies.