Remove sidebar from custome pages - need urgent help.

resolved (7 posts) (2 voices)

  1. Hi. I've just updated to the latest Dejavu theme and have found that on my custom pages (pages, created by other aplications) default sidebar appeared - in the miidle of the page, below content.

    I've tried to make Full Page layout default in the Theme menu, but it doesn't help.

    Please see example here: http://www.travelphotographers.ru/members/login/index

    Need urgent help.
    Thanks!

    Posted 3 months ago #
  2. Elliott
    Support

    Hello dik,

    Have you contacted the plugin authors yet?

    Does the plugin actually create the pages in your Dashboard where you can edit them?

    Posted 3 months ago #
  3. Hello Elliot,

    I've contacted plugin authors, but they say it something to do with theme, because before theme update, there were not such a problem.

    The plugin creates virtual pages, so I do not have possibility to edit them. Actually it wraps it's content with wordpress header and footer.

    Posted 3 months ago #
  4. Probably, it will help -
    This is the file layout.phtml which describes how wrap plugin with worpress:

    <?php
    do_action("template_redirect");
    Am_Di::getInstance()->plugins_protect->get('wordpress')->startLayout($this, $title,true);
    global $mysite;
    get_header();

    include dirname(__FILE__)."/../amember.php";
    ?>

    <?php mysite_after_page_content(); ?>

    <div class="clearboth"></div>
    </div><!-- #main_inner -->
    </div><!-- #main -->

    <?php get_footer(); ?>

    When I disable <?php get_footer(); ?> - footer disappears together with sidebar (which I'd like to remove). Could it be that default sidebar now somehow connected with footer?

    Posted 3 months ago #
  5. Elliot, I found problem.

    If I disable

      mysite_after_main();

    in footer.php - everything stands on it's place.

    For what this code is responsible? Should I really keep it?

    Posted 3 months ago #
  6. Elliott
    Support

    Add this inside your layout.html file,

    <style type = 'text/css'>
    #sidebar { display: none !important; }
    </style>
    Posted 3 months ago #
  7. Elliot, Thanks a lot! It works.

    Posted 3 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme