Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Using HTML named anchors in define pages

    I was adding an FAQ section to my site, using html named anchors ... as defined here. All the URLs were being generated as

    Code:
    http://www.mysite.com/#label
    It was driving me nuts until I (finally) figured out that the anchor link needed to be coded as

    Code:
    <a href="index.php?main_page=zen_page_name#label">
    I'm hoping this helps somebody else out!

  2. #2
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: Using HTML named anchors in define pages

    Thank you!!!



    Kind regards,
    orange_juice

  3. #3
    Join Date
    Mar 2009
    Location
    Crockett, Texas
    Posts
    139
    Plugin Contributions
    0

    Default Re: Using HTML named anchors in define pages

    YOU'RE THE BEST!!! Thanks.

  4. #4
    Join Date
    Jul 2011
    Location
    Glasgow, Scotland
    Posts
    113
    Plugin Contributions
    1

    Default Re: Using HTML named anchors in define pages

    Tried that really didn't work for me on the main page, probably not on any defined pages.
    Sorry if this sounds like I'm dissing the [op].

    would it not be better to use
    Code:
    <a href="<?php echo zen_href_link("page_name#label") ?>">link name...</a>
    seeing as how Zen Cart does all the rest for us. domain name folder level blah! blah!.

    Again sorry if that's insulting to lat9 not intended.

 

 

Similar Threads

  1. Named Anchors Not Working?
    By tracstev in forum General Questions
    Replies: 13
    Last Post: 16 Feb 2011, 07:12 AM
  2. Replies: 0
    Last Post: 26 Nov 2007, 06:02 AM

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