Sidebars showing below content

  • Author
    Posts
  • #58441

    Hello there,

    Zed, to begin with, thanks for the info on the latest update. I do think my issue is related, but I did not manage to schange my child theme. It has been so long ago that I created it, I don’t remember how and where to find the section you advise me to change. As I do not know it would solve my problem, maybe you could tell me? If it might, I will find someone to help me with that. If there is another solution, I would be happy to hear it.

    Since the latest update, my sidebars (on some pages on the left, on others on the right) have moved to below the content. I tried different settings, but the only way to get at least one of the side bars on top is using a page template with two sidebars:

      When using 2 sidebars, 1 left 1 right the sidebars appear where they sould
      When using 2 sidebars on the same side, only sidebar1 appears at the right place, sidebar2 below the content
      When using 1 sidebar, either left or right, it appears neatly at the side below the content

    All your help is much appreceated, thanks in advance!
    Heleen

    Website: www.deltavliegschool.com/leren-deltavliegen

    #58524

    Update: I don’t understand exactly, but I think I solved my problem by deleting all code below:

    /*
    LAYOUT: Two columns
    DESCRIPTION: Two-column fixed layout with one sidebar right of content
    */

    In the css of my child-theme. Now the sidebars have moved to the sides at the top of the content again. Problem solved it seems!

    #58746

    There seems however to be some sort of strange thing happening here, that the developers’ team may want to look into. On our QA site, I have articles that display the sidebar below content (http://qa.woxx.lu/1917-part-1/) and most others that look fine (http://qa.woxx.lu/alte-und-neue-kriege%e2%80%a9-denken-statt-schiessen/). Still waiting before upgrading, although most of it looks fine with necessary CSS tweaks 8^)

    Website: qa.woxx.lu

    #58747

    I agree, for with some combinations of items on the page or certain settings, the sidebars move to below the content again. I found this out by accident and can not yet reproduce this or name the conflicting items/settings, but something is not yet working properly.

    Website: www.deltavliegschool.com

    #58999
    Zed
    Cryout Creations mastermind

    @mezhaheleena, I see you are using a child theme in which you’ve copied Mantra’s style in its entirety. This is generally a bad idea since it can create issues when updates bring styling changes (which the child theme will then overlap).

    The child theme should only contain the customized styling rules or new ones.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #59055

    I’m having the same issue, sidebar (on right) shows below content. Can’t figure what’s causing it. I use a child theme but tried removing all customizations and no joy. I’ve even copied the site elsewhere (using WP Migrate DB to preserve theme config) and bizarrely the copied site seems to work fine so I’ve no idea what’s going on. I tried as much as possible to eliminate the problem being caching of some description. Maybe I should copy the site and then re-import it…

    #59056

    I to had a problem with the latest update 3.0.3. On my site I use Mantra with “One column, no sidebar“, but after the update all pages was changed to “Standardmall“. Then I had to change all pages back to “One column, no sidebar” manually. It’s disturbing to have to change more then 100 pages manually! I have another site using Mantra that I have not updated yet and I do not want to update before there is a solution for the problem. That site is more then 200 pages.

    I am also using Elementor.

    Website: lidtekniska.se

    #59057

    I’m just using the Default Template for each page. In Mantra settings my layout is set to a sidebar on the right. Front page is a blog page so no static page. Actually now I think about it I might not have checked static pages or post pages, possibly only the front (blog) page. No, I’m sure I checked at least one post page and it was showing the sidebar below content. I don’t really want to try it again as it’s a live and quite busy site, with a lot of comments so rollback from a backup is quite slow.

    #59137

    Hi Zed,

    Of course I did not copy Mantra’s style completely. I made an empty child, and added only my changes. I noticed that now there is a lot of code in my child theme, and have no idea how (or when) it got there. It was not me. As I don’t remember exactly what changes I did make when I created the site, I have not removed all the extra style info as yet. I have to find some time to study the matter further, as it is not often I do stuff like that. But, I did not add all the extra info and nobody else has as far as I know.

    The problem occurs not only with my somehow deformed child theme, but also when using the Mantra theme. So maybe it is nog just the weird child theme?

    Heleen

    #59651
    Zed
    Cryout Creations mastermind

    @mezhaheleena, I’m sorry, but a comparison clearly indicates that most of the child theme styling is identical to the original 2.6.1.1 styling.


    @Rufus
    , can you post an URL to a problematic site section?


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #59660
    This reply is private.
    #59734

    Dear Zed,

    It clearly does, but I did not put that code there, and there is no one else who works on that site. So, I have no idea how it got there. As I don’t exactly remember what info needs to be in the child and what info I can remove, I do not dare to remove any. I will do so as soon as I have had time to study this again. I do not think it will solve my problem, but I do understand your annoayance at such sluggish site admin.

    Good luck with helping the others!
    Heleen

    #59957
    Zed
    Cryout Creations mastermind

    @rufus, I see you’re using a child theme. How is it enqueuing the parent theme’s styling and what files/code is it customizing?


    @mezhaheleena
    , someone had to have created the child theme (even through some automated plugin tool). Although not simple, it is possible to extract only the changes by using a diff tool to compare Mantra’s original styling from 2.6.1.1 and the child theme style (similar to the link I previously posted).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #60041

    Hi – currently the site is using ‘old style’ enqueueing of the parent theme but I did try with the newer style too. I’m pretty sure I tried with no child theme as well. I’ll have to give the update another try at a quiet hour. There are no modified theme files in the child theme, just a few add_action & add_filter hooks.

    Old style is:
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }

    New style tried is:
    <?php
    // enqueue parent theme styling
    function child_parent_styling(){
    wp_enqueue_style( ‘mantra-style’, get_template_directory_uri() . ‘/style.css’, NULL, _CRYOUT_THEME_VERSION ); // main
    style.css
    if (is_rtl()) wp_enqueue_style( ‘mantra-rtl’, get_template_directory_uri() . ‘/resources/css/rtl.css’, NULL, _CRYOUT_T
    HEME_VERSION ); // rtl style.css
    wp_enqueue_style( ‘mantra-child’, get_stylesheet_directory_uri() . ‘/style.css’ ); // child style.css
    }
    add_action(‘wp_enqueue_scripts’,’child_parent_styling’);

    • This reply was modified 6 years ago by Rufus.
    #60511
    heinenmja
    Power User
    This reply is private.
    #60592
    Zed
    Cryout Creations mastermind

    @heinenmja, are you using any kind of caching/speed-up (plugin or server-site)? The source code of your site seems to indicate that. Make sure to clear/reset any caching after the update.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #60635

    For others affected by the problem, in case that helps: my problem of sidebar below content seems solved, by removing the single.php file that was in my child theme directory and that I didn’t need; I only fiddled around with it on my QA site for some testing a while ago. So it appears indeed that some changes to the theme through child themes files can cause this behaviour.

    #60652
    heinenmja
    Power User
    This reply is private.
    #60911

    Hi – I’ve updated to 3.0.4 and it’s working fine now! I’m not sure why but the one change I made was to put in a functions.php with the newly-recommended enqueueing style so perhaps this was it (I’m sure I tried that earlier but… ah well!).

    Thanks for your help!

Viewing 19 posts - 1 through 19 (of 19 total)

The topic ‘Sidebars showing below content’ is closed to new replies.