Zen Cart Logo
Forums / General Questions / Using Information and important links section in Mobile hamburger menu ONLY!

Using Information and important links section in Mobile hamburger menu ONLY!

Views: 668

Results 1 to 7 of 7
29 Apr 2019, 1:36 PM
#1
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Using Information and important links section in Mobile hamburger menu ONLY!

[Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

Hello,
I am trying to add my About us.php and other php info files I made, either to 'Information' or 'Important links'.
I have read a few posts, however they all seem to be about doing it via expages, however I do not use these as i have footer module installed (Flexible footer addon). In the footer I have linked my own About us.php and other php info files.
It is these that I would like also to add onto my hamburger menu so that they can be seen on a mobile device.

If this is not possible and it has to be done throughthe ez pages. Can someone tell me what settings I have on the ezpage as well as what sideboxes I need turned on and to what settings?
I did try this but cannot get anything to appear in the hamburger menu.
This is the only place I am wanting to add these files.

Doe this make sense?
Thank you
A

30 Apr 2019, 3:11 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Using Information and important links section in Mobile hamburger menu ONLY!

Modify includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php.

Just below

include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));

add

$var_linksList[] = array('link' => zen_href_link(FILENAME_ABOUT_US), 'name' => BOX_INFORMATION_ABOUT_US);

1 May 2019, 10:58 AM
#3
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Using Information and important links section in Mobile hamburger menu ONLY!

Hello,
Thank you for that.
I have added the line of code and I have inserted the link to the page I want to display and the name I want for the page, there is a gap there in the menu for the page however there is no name and no link?
Are you able to confirm what I need to put where as I must be putting the info in the wrong parts of the link.

Thanks
A

1 May 2019, 11:17 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Using Information and important links section in Mobile hamburger menu ONLY!

You must not have those two defines. You can try it with:

$var_linksList[] = array('link' => zen_href_link('about_us'), 'name' => 'About Us');

1 May 2019, 1:01 PM
#5
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Using Information and important links section in Mobile hamburger menu ONLY!

Hi,
I tried that one also and it still just links back round to my front page and the about us text doesnt show.

I assume this is correct...
include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php')); <STAYS AS IT IS>
$var_linksList[] = array('https://craftjam.co.uk/includes/languages/english/html_includes/define_about_us.php' => zen_href_link('about_us'), 'name' => 'About Us');

Thank you
A

1 May 2019, 1:23 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Using Information and important links section in Mobile hamburger menu ONLY!

????

Please use the code I provided. Literally copy and paste it - don't interpret it in any way.

1 May 2019, 2:51 PM
#7
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Using Information and important links section in Mobile hamburger menu ONLY!

Hi,
I have. I tried inserting just the line of code for both of the examples given and it does the same thing. It just links round to my main front page.
I then altered it to have the actual link to the page thinking maybe it needed an actual link (which is what I posted above) and it still didn't work.

There is no text on the clickable link and it just re directs to the front page.

Thank you
Amy