• I added some text in my footer such as:
    Comment Policy
    Privacy Statement
    Etc….
    I created pages for each of these and now want to create a link from the text to the page. Can anyone tell me how to do that.

    My template allows for one menu and I have already used that for my main menu that links back to my webpage. I just want to be able to create simple link that opens the page when you click the text.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • If the area you used for the footer text allows HTML, you can code a link instead of just the text.

    For example, a link for the ‘Privacy Statement’ might look something like this:

    <a href="https://mysiteurl.com/privacy-statement" >Privacy Statement</a>

    You can get the href URL by viewing the Page and copying it from the address bar of the browser.

    Thread Starter smashr22

    (@smashr22)

    Ok, thanks but I don’t know where to put it. Below is my footer.php and the text that I want to link is in the center footer.

    The name of one of the pages (comment policy) is: https://blog.hrcorporateyoga.com/comment-policy/

    Can you tell me where to insert the link code?

    <div class=”clear”></div>
    <?php if(is_active_sidebar(‘sidebar-footer-left’) or is_active_sidebar(‘sidebar-footer-center’) or is_active_sidebar(‘sidebar-footer-right’)) : ?>
    <div id=”bottombar”>
    <ul id=”bottombar_left”>
    <?php dynamic_sidebar(‘sidebar-footer-left’); ?>

    <ul id=”bottombar_right”>
    <?php dynamic_sidebar(‘sidebar-footer-right’); ?>

    <ul id=”bottombar_center”>
    <?php dynamic_sidebar(‘sidebar-footer-center’); ?>

    <div class=”clear”></div>
    </div>
    <?php endif; ?>

    <div id=”footer”>
    <div id=”foot”>
    <?php
    $options = get_option(‘themezee_options’);
    if ( isset($options[‘themeZee_general_footer’]) and $options[‘themeZee_general_footer’] <> “” ) {
    echo $options[‘themeZee_general_footer’]; }
    ?>
    <div class=”credit_link”><?php themezee_credit_link(); ?></div>
    <div class=”clear”></div>
    </div>
    </div>
    </div>
    <?php wp_footer(); ?>
    </body>
    </html>

    You put the links in the place you put the text that appears in the footer. Instead of ‘Comment Policy’, you would put the link to its page:

    <a href="https://blog.hrcorporateyoga.com/comment-policy/" >Comment Policy</a>
    Thread Starter smashr22

    (@smashr22)

    Thanks! I couldn’t get it to work that way but I was able to add a custom menu in my template where I could add links to pages. Thank you for taking the time to help me!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding Links to Pages’ is closed to new replies.