Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1183178

    Hi Guys,
    In single posts with a sidebar if you place a full width element in the post it moves the content of the sidebar below the entry and leaves the sidebar empty.
    Is it possible to stop the sidebar content from moving – See below:

    I have modified the archive and single post pages to always display a submenu below them as below: This is classed as a full width element and causes the sidebar to move even though it loads first. Is there a CSS mod that will prevent the widgets moving below the content.

    Modification used to always show the full width submenu

    add_action('ava_after_main_container', 'ava_after_main_title_mod');
    function ava_after_main_title_mod() {
    	 if(is_archive() || is_single()) {
    		echo do_shortcode("[av_submenu which_menu='' menu='3' position='center' color='socket_color' sticky='aviaTBsticky' mobile='disabled' mobile_switch='av-switch-768' av_uid='av-k38notmf' custom_class=''][av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style='' av_uid='av-1n6bz'][av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style='' av_uid='av-wa77']
    [/av_submenu]");
    	}
    }
    #1183505

    Hey Thomas,

    NO, if any full-width element is used a sidebar is always pushed down.

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1183515
    This reply has been marked as private.
    #1183663

    Hi thinkjarvis,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    body.sp_team-template-default aside.units.alpha {
      width: 27%;
      clear: none;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1183824

    Hi Victoria,
    You are a diamond thank you! I did attempt to edit the clear value before but I must have picked up the wrong element.

    I have just realised you specifically set this to work for the SportsPress Team Pages. I really appreciate this thank you.
    If anyone else wants to use this for all posts just remove .sp_team-template-default as below:

    body aside.units.alpha {
      width: 27%;
      clear: none;
    }

    I have seen several people ask for this on the forum, so I am sure this will help others.
    I will share the completed site in the forum once I have finished. Mountains of content left to add yet.
    Cheers,
    Tom

    #1184383

    Hi Tom,

    Great, I’m glad that Victoria could help you out and thanks for sharing the working solution. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

    #1200941

    Please. I’m using a submenu for some specific pages (I share the code). It works fine on the desktop, on mobile I would like to turn it into a burger menu but the control [mobile_switch = ‘av-switch-480’] does not work. First request.

    Second request. As you can see, the same page I share in the private link, on the desktop looks good, on the mobile the text is restricted to the center. It is as if the submenu is pushing right and left padding. Can you help me? Thanks.

    echo do_shortcode("[av_submenu which_menu='' menu='63033' position='center' color='socket_color' sticky='aviaTBsticky' mobile='disabled' mobile_switch='av-switch-768' av_uid='av-k38notmf' custom_class=''][av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style='' av_uid='av-1n6bz'][av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style='' av_uid='av-wa77']
    [/av_submenu]");
    #1202381

    Hi dnetwork,

    Here is what I am seeing. Which part is not working for you?

    Best regards,
    Victoria

    • This reply was modified 4 years, 7 months ago by Victoria.
    #1202404

    Hi Victoria,
    I had to put the submenu on each page. When I do it from function.php of the child theme here’s what I get. Look at the same page now. Please. On mobile, there is no drop-down menu, the text is restricted to the center and the h2 (also on the desktop) are modified.

    #1202874

    Hi dnetwork,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1202877

    Ok

    #1203295

    Hi dnetwork,

    Best regards,
    Victoria

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.