WordPress.org

Ready to get started?Download WordPress

Forums

Marla
[resolved] Can sidebars be displayed for pages? (4 posts)

  1. jebraweb
    Member
    Posted 1 month ago #

    I am somewhat new to WordPress, but I can't seem to figure out how to make the sidebars visible in Pages within the Marla theme. Even on the home page (set to static content), I can't make any widgets that I've added to a sidebar appear. Is there something I'm missing?

    Thanks much.

  2. ceslava
    Member
    Theme Author

    Posted 1 month ago #

    Hi jebraweb,

    There are 4 sidebars on Marla Theme but none on pages. more info here: http://marla.ceslava.com/en/sidebars-widgets/

    Best regards.

  3. jebraweb
    Member
    Posted 1 month ago #

    Thank you, ceslava. Do you know of any way to add sidebars for pages? I've tried several plugins, but none seem to work.

  4. ceslava
    Member
    Theme Author

    Posted 1 month ago #

    Hi,

    You could create a new sidebar in functions.php or use one of the theme.

    Then you must edit the page.php file, for example with the very last line:

    <div id="primary" class="content-area">
    		<div id="content" class="site-content" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'content', 'page' ); ?>
    <?php if ( dynamic_sidebar('sidebar-after-content') ) : else : endif; ?>

Reply

You must log in to post.

About this Theme

About this Topic