Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default 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

    Code:
    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);
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default 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');
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default 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.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Replies: 10
    Last Post: 6 Apr 2020, 03:43 PM
  2. v155 TIP: Customizing 3 Bar (hamburger) menu color for your mobile
    By pixelpadre in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Mar 2020, 12:53 AM
  3. v155 Categories, Information and EZ Pages Display in Mobile Menu
    By twitchtoo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Jan 2019, 07:35 PM
  4. footer - how to delete important links section?
    By tparvaiz in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Jul 2011, 09:42 PM
  5. EZ Pages links in Information instead of Important links?
    By ddye in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Mar 2011, 04:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR