WordPress.org

Forums

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

  1. jebraweb
    Member
    Posted 1 year 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 year 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 year 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 year 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; ?>
  5. ernunziato4
    Member
    Posted 10 months ago #

    Ceslava, how do I find the page.php file to edit it? Forgive me, I'm new to this too (although fairly comfortable navigating code files)...

  6. ceslava
    Member
    Theme Author

    Posted 10 months ago #

    Hi,

    page.php like all the files are on wp-content/themes/marla

    Regards

  7. ernunziato4
    Member
    Posted 9 months ago #

    so where do I find that within my wp-admin, or do I need to manually go into the loaded theme files on my server? I'm using a WordPress app within 1and1 (my host).

    Ok maybe I'm not so savvy :)

  8. ceslava
    Member
    Theme Author

    Posted 9 months ago #

    You have to access vía FTP to yourblogdomain > wp-content > themes > marla > page.php

  9. s.gori
    Member
    Posted 5 months ago #

    Hello Ceslava,
    I try insert this code in pge.php:
    <Div id = classe "primario" = "content-zona">
    <Div id = "content" class = "site-content" role = "main">

    <? Php mentre (have_posts ()): the_post (); ?>

    <? Php get_template_part ('content', 'pagina'); ?>
    <? Php if (dynamic_sidebar ('sidebar-dopo-content')): altro: endif; ?>

    But no new sidebar.
    It's possible use a plugin Sidebar Manager Light and a plugin about advetising banner?

    Thank's
    serena

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic