-
AuthorPosts
-
December 9, 2016 at 6:21 pm #722564
I need a full width menu at the very top of the footer area, but have figured out only one way to do it and that’s by adding a full width submenu item to the bottom of a page. However, this requires manually adding it to all pages and posts and blog category pages – not feasible. What is the solution?
December 13, 2016 at 12:23 am #723462Hey m,
Try to add/execute the fullwidth submenu shortcode in footer.php.
Best regards,
NikkoDecember 14, 2016 at 8:48 pm #724533How do I get the shortcode? I tried getting it within WP admin, but it’s not listed as an available shortcode.
December 18, 2016 at 2:36 am #725777Hi,
Try adding this code at the bottom of functions.php:
//set builder mode to debug add_action('avia_builder_mode', "builder_set_debug"); function builder_set_debug() { return "debug"; }
Then try to create a new page, just add the fullwidth submenu, then the shortcode would appear at the bottom. Let us know if this helps.
Best regards,
NikkoJanuary 3, 2017 at 8:41 pm #729132Pasting the shortcode into footer.php just shows the code on the page.
January 3, 2017 at 8:41 pm #729133[av_submenu which_menu='' menu='57' position='center' color='main_color' sticky='aviaTBsticky' mobile='disabled']
[av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style='']
[av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style='']
[/av_submenu]January 3, 2017 at 9:24 pm #729144Hi,
Please remove the code from footer.php and try adding this at the very end of your themes / child themes functions.php file. It can be accessed from Dashboard > Appearance > Editor > functions.php
If you have any trouble please get back to us with your FTP credentials so we can take a closer look at it.
Best regards,
Vinay- This reply was modified 7 years, 11 months ago by Vinay.
January 3, 2017 at 9:57 pm #729167Adding this to the end of the child functions.php crashed the site:
[av_submenu which_menu='' menu='57' position='center' color='main_color' sticky='aviaTBsticky' mobile='disabled']
[av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style='']
[av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style='']
[/av_submenu]I have removed it again so the only change to the functions.php is that the debug code is still there. There are no changes now to the footer.php since adding the submenu code to it just showed the code on the webpage.
January 4, 2017 at 5:49 pm #729538Hi,
put this code into your functions.php:
//set builder mode to debug add_action('avia_builder_mode', "builder_set_debug"); function builder_set_debug() { return "debug"; }
Afterwards use this shortcode when editing your page:
[av_submenu which_menu=” menu=’57’ position=’center’ color=’main_color’ sticky=’aviaTBsticky’ mobile=’disabled’] [av_submenu_item title=’Menu Item 1′ link=” linktarget=’no’ button_style=”] [av_submenu_item title=’Menu Item 2′ link=” linktarget=’no’ button_style=”] [/av_submenu]
Best regards,
AndyJanuary 6, 2017 at 5:24 am #730163Thanks, like I said, the debug code is already in the functions.php. Regarding the submenu code, I don’t know where to put it exactly. It needs to automatically display on all pages with the footer.
January 6, 2017 at 5:02 pm #730410Hi,
I understand what you are trying to do, the shortcode cannot be used directly in footer.php file.
Please paste the html code of the menu (see private content) in the footer.php at the very top before the
<?php
This will display the menu on top of the footer on all pages for you :)
Best regards,
Vinay- This reply was modified 7 years, 11 months ago by Andy.
January 6, 2017 at 8:22 pm #730505Thank you, getting there!
1. The urls are for the dev server so they will break when the site is launched. How can it be changed so that this doesn’t happen?
2. The background is white but should be green. The separator bars are blue but should be white. How is this fixed?
3. The menu items don’t show in the mobile menu. What can be done about that?January 6, 2017 at 10:22 pm #730542Hi,
Great we are on the same page!
1. To correct the URL’s please copy and paste the code into a text editor like sublime text and replace all the URL’s
<a href="http://dev.domain.com/" itemprop="url">
2. To change the background color please use the below CSS#menu-main-lower { background: #17ba71; } #top #menu-main-lower > li > a { border-color: #FFF; }
3. The mobile menu works fine could you please elaborate what is not showing ?
Best regards,
Vinay- This reply was modified 7 years, 11 months ago by Vinay. Reason: Edited domain name
January 7, 2017 at 5:31 pm #730723Please see my note attached.
January 7, 2017 at 5:38 pm #7307261. Is your code sample a special code that I can change now and that means I don’t have to change the code at launch time, or is it just showing me an example of code that I will need to change at launch time?
2. Perfect! Thanks!
3. On mobile, there is a different nav box in the top right corner. The submenu items do not show in it. They need to be there for easy access.
January 8, 2017 at 6:55 pm #730892Hi,
1. You need to use a child theme and add the code in the child theme footer.php that way when the theme get’s updated your customizations won’t be lost.
For more info please check http://kriesi.at/documentation/enfold/using-a-child-theme/2. :)
3. To give access to submenu on touch device please use a # instead of the about page link and make the actual about page a subpage.
Best regards,
VinayJanuary 10, 2017 at 9:11 pm #7317201. So you want me to paste into the child theme footer.php? This doesn’t make sense to me. Please read your January 6, 2017 at 10:22 pm comment for #1.
3. How is this done?: “make the actual about page a subpage.” The submenu has 4 links, plus 3 sublinks. These need to show in the top right menu box that displays only on small devices.
January 11, 2017 at 7:17 am #731903Hi,
1. I have tested this code and it works don’t worry about the old reply at the moment.
3. In Appearance menu > main menu >
Delete the about menu and create a custom link with just “#” in the link option. Then add the rest of the submenus to the About menu.
Best regards,
VinayJanuary 11, 2017 at 5:15 pm #7321543. Why should the main menu About item be changed? The issue is that the entire green submenu does not show as links in the mobile navigation box. Please see the three screen captures.
January 14, 2017 at 10:32 am #733507Hi,
WP login you’ve provided does not work anymore. Can you provide us a new login please?
Update the theme to the newest version (v3.8.4). Deactivate “Hide Mobile Menu Submenu Items” inside Enfold->Header->Mobile Menu
Best regards,
AndyJanuary 16, 2017 at 11:37 pm #734389I made these changes, but still don’t see the submenu items in the mobile nav box.
January 18, 2017 at 6:10 pm #735457Hi,
abut which submenu items are you talking about? all you menu items from desktop view are displaying fine on mobile too. On desktop there are no submen items, see: http://i.imgur.com/s5kjg99.png
However, I noticed that you are using a caching plugin. Would you mind opening your plugin’s settings page and temporarily deactivate the caching of your site? Then please try to clear your browser cache and hard refresh the site (Hold CTRL + SHIFT + RELOAD) to see if that solves the issue.
Best regards,
AndyJanuary 18, 2017 at 7:46 pm #735501Your picture shows the main upper menu. This is not the green lower submenu, as per the link I provided previously (see private content)
The cache plugin has not been activated yet.January 20, 2017 at 8:16 pm #736631Hi,
The moment “About” menu is clicked the browser redirects the user to the about page link. Hover feature does not work on all mobile devices. Let’s add a submenu icon and toggle the submenu when the icon is clicked. This customisation will take some time but we are happy to help you :)
Please confirm if this is what you are trying to achieve ?
Best regards,
VinayJanuary 20, 2017 at 8:39 pm #736640Thanks Vinay for that idea. What I’m really trying to do has to do with the face that there is a top right menu box on mobile/small screens that replaces the white upper menu. I want the green lower submenu items to also be listed in the existing top right menu box the same way that the white upper menu items are already. Is that possible?
January 20, 2017 at 8:59 pm #736642Also, I have created the custom menu item with only # in the url box. But I need to know how to get the html that needs to go into the footer.php. The debug feature only shows shortcode.
January 23, 2017 at 9:19 am #737157Hi,
Unfortunately it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However if its really important for you to get this done, you can always hire a freelancer to do the job for you :)
As an alternate solution the current footer links can be displayed with the main menu items in the hamburger menu that appears in mobile devices.
1. Enable CSS classes from the screen options on the top right of the pages.
2. Add the below code to quick css.
/*Show only in mobile or desktop*/ @media only screen and (min-width: 769px) { .only_mobile { display: none !important; }} @media only screen and (max-width: 768px) { .only_desktop { display: none !important; }}
3. Add the menu items in footer to the main menu with a class name “only_mobile” from Appearance > Menu > Main menu
News
Media
About
Contact
4. Hide the footer menu in mobile device with the below CSS code.
@media only screen and (max-width: 768px) { .menu-main-lower { display: none !important; }}
5. To view the html code please right click the element and select inspect.
Best regards,
VinayJanuary 24, 2017 at 2:32 am #737504I need to know how to get the html that needs to go into the footer.php. The debug feature only shows shortcode. –> You gave me the html code for the shortcode to use in the footer.php on January 6, 2017 at 5:02 pm. I need to know how to get the html without needing you to give it to me, otherwise this entire solution is not useful. (The footer could be changed many times in the future!)
January 24, 2017 at 8:05 am #737585Hi,
To get the html code of any page element right click on the element in this case “menu” (in frontend view) and select inspect. This will show you the menu list inside a UL tag. Again right click on the UL tag in the html code and select Edit. This will allow you to copy the html code as mentioned earlier in point no 5 and do check out the video link that shows you how to use the chrome dev tools, it can be very handy tool for you :)
Best regards,
VinayJanuary 24, 2017 at 5:33 pm #737846Yes!! Everything is working!!!! Yay!!!!!! Thank you very much. :D
-
AuthorPosts
- The topic ‘How to have a full width submenu automatically display on all pages’ is closed to new replies.