Support

modifying hal-50 header to add page with direct link (5 posts)

Languages

de | fr | es | 日本語

About This Topic

Tags

  1. rss yorchi

    new member


    rss Posted 4 years ago
    #

    I have the Hal-50 theme running at www.yorchi.com/blog I managed to add the WPG2 add on but didn't like how the Gallery link it would create would run straight from WordPress. I would like to add the exact same link at the top of the header next to the "Home" link but I want it to say "Gallery" and I want it to take you directly to www.yorchi.com/gallery instead of it running through the wordpress page. Can you please give me the code to edit in the theme editor. Thank you.

  2. rss milo

    moderator


    rss Posted 4 years ago
    #

    Open header php, look up this line:

    <div id="navbar">
    <ul >< li>
    < a title = " Home is where the heart is " href = " <?php echo get_settings('home'); ? > " > Home < / a > <
    /
    li>
    <?php wp_list_pages('title_li=&depth=1'); ?>
    </div>

    Add AFTER the line
    <?php wp_list_pages('title_li=&depth=1'); ?>
    this:

    < l i >< a title = " My Gallery " href = " http:// www.yorchi.com/ gallery " >Gallery < / a >.

    BTW: actually the HAL theme is created as a fluid and accessible layout, that works within the range of 800px to 2600px in all common browsers.

    Now you have a vertical scroll bar in 800, 900, 1024 and 1200px within all browsers.
    Consider fixing this issue.

  3. rss yorchi

    new member


    rss Posted 4 years ago
    #

    I would love to fix whatever problem you find but I don't know how :D

    Thank you for the response, I will try it now.

  4. rss yorchi

    new member


    rss Posted 4 years ago
    #

    just copied and pasted that exact line after the line you told me to and it did not create the link...is there any way to send you the code directly?

    I tried copying and pasting here but it did not go smoothly...

  5. rss milo

    moderator


    rss Posted 4 years ago
    #

    codes in post =)

Reply

You must log in to post.

Design by milo

Milo designs web sites that strike the perfect balance between professional high-class graphics, functionality, usability, user experience, and high performance.