Tagged: fullwidth menu, sidebar, single post
-
AuthorPosts
-
February 10, 2020 at 6:45 pm #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]"); } }
February 11, 2020 at 2:32 pm #1183505Hey 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,
VictoriaFebruary 11, 2020 at 2:49 pm #1183515This reply has been marked as private.February 11, 2020 at 9:22 pm #1183663Hi 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,
VictoriaFebruary 12, 2020 at 11:19 am #1183824Hi 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,
TomFebruary 14, 2020 at 5:39 am #1184383Hi 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,
RikardApril 5, 2020 at 8:30 am #1200941Please. 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]");
April 9, 2020 at 4:37 pm #1202381Hi 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.
April 9, 2020 at 5:05 pm #1202404Hi 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.April 11, 2020 at 1:12 pm #1202874Hi 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,
VictoriaApril 11, 2020 at 1:23 pm #1202877April 13, 2020 at 3:06 pm #1203295Hi dnetwork,
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.