Tagged: menus, navigation, page design
-
AuthorPosts
-
May 23, 2023 at 6:37 pm #1408323
Hello – I want to create a similar page layout and left side menu as seen here: https://asana.com/guide/team/onboard/portfolio-management
I’ve been using Enfold for many years but I haven’t figured out how to recreate something similar to the above. Any tips would be appreciated. Thanks!
May 23, 2023 at 7:05 pm #1408324Update – I have the left sidebar navigation menu in place but I still need advice on creating behavior like a frameset. I’d like the left sidebar navigation to be persistent while the content on the right changes based on the menu item selected in the left sidebar. Is creating multiple pages with the same left sidebar the only option? Such as this technique: https://kriesi.at/themes/enfold-construction/service/
- This reply was modified 1 year, 5 months ago by ihf-eramstad.
- This reply was modified 1 year, 5 months ago by ihf-eramstad.
May 25, 2023 at 5:27 pm #1408566Hi,
Thank you for your patience and the link to your example page, each left side menu item opens a new page with the same layout, this is the same as our demo page that you linked to, and this would be my recommendation also. I can’t think of a different solution for the same behavior.Best regards,
MikeAugust 7, 2023 at 10:22 pm #1415759Thanks for the above. I have the sidebar enabled as discussed in this old thread: https://kriesi.at/support/topic/sidebar-menu-construction/
I see the titles of subpages appearing as links in my left sidebar.
– How do I style the titles of the subpage titles – I’d like to style the text, add hover effects, etc. I inspected the demo site (http://kriesi.at/themes/enfold-construction/service/architecture/) for clues – I assume I have to use CSS since I haven’t found any styling options.
– I assume I use widgets to add additional content to the sidebar? It looks like the demo site uses text widgets for the additional sidebar content.Thanks.
August 8, 2023 at 1:47 am #1415773Hi,
All of the colors for the sidebar menu are set in the Enfold Theme Options ▸ General Styling ▸ Main Content here is a screenshot to show you.
But note that these colors affect multiple element on your site.
If you want to add more content to your sidebar you would add more widgets.Best regards,
MikeAugust 8, 2023 at 2:08 am #1415777Thanks, Mike. I switched to using HTML in sidebar widgets and I’m styling those individually.
I want to hide the sidebar at a specific breakpoint (mobile breakpoint) for just this page so that mobile-only elements will replace the content of the sidebar. What’s the best method for doing this just for this page?
August 8, 2023 at 2:43 am #1415780Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 1024px) { #top.archive .container main.av-content-small.units { width: 100%!important; } #top.archive #main .sidebar { display: none !important; } #top.archive .container main.content { border-right-style: none !important; border-right-width: 0px !important; } }
change 1024px with your break point, change archive with your page ID
Best regards,
MikeAugust 8, 2023 at 6:25 pm #1415850Thanks! One more question – is there a way to keep the left sidebar fixed so it doesn’t scroll with the page?
August 8, 2023 at 6:36 pm #1415852Hi,
I’m not sure what you mean, in our demo the sidebar items stay at the top of the sidebar when you scroll, do you mean that yours are fixed and stay visible as you scroll?
This sounds like you have a added script or plugin doing this, please link to your page so we can see.Best regards,
MikeAugust 8, 2023 at 6:45 pm #1415853Sorry – I’d like the content in the sidebar to be sticky, so that it’s fixed in place as the page content scrolls on the right, like an old school frameset behavior.
Page info in private.August 9, 2023 at 2:05 am #1415874Hi,
For that you will need to add a plugin or a script, and you will need to add more content to your test page.
I see you are not using a child theme so I recommend the WPcode plugin for your customizations, this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snippets.
Add this code as a new snippet for the Code Type PHP Snippetfunction sticky_sidebar_script() { ?> <script> (function ($) { $(window).scroll(function (e) { var $sticky = $('.inner_sidebar'); var position = ($sticky.css('position') == 'fixed'); if ($(this).scrollTop() > 1 && !position) { $sticky.css({ 'position': 'fixed', 'top': '170px', 'width': $sticky.innerWidth() }); $sticky.next().css('float', 'right'); $sticky.addClass('fixed_element_style'); } if ($(this).scrollTop() < 1 && position) { $sticky.css({ 'position': 'static', 'top': '0px', 'width': '' }); $sticky.next().css('float', 'left'); $sticky.removeClass('fixed_element_style'); } }); })(jQuery); </script> <?php } add_action('wp_footer', 'sticky_sidebar_script');
I added it to this test page so you can it it working, you can adjust the position 170px in the code to suit.
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.Best regards,
MikeAugust 10, 2023 at 1:35 am #1415964Got it – thanks!
August 10, 2023 at 11:49 am #1415986Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Page navigation design advice’ is closed to new replies.