• Resolved Neil Wilson

    (@neil-wilson)


    My site is http://www.aafords.com at my iPage host.

    I have a local development site which I use to update my iPage hosted site from time to time using Duplicator.

    I have links in the footer of each page which are hard coded in the 2013 child footer.php style.css.

    When I upload my development site to my iPage host I have to manually update these hard coded links. I have been told to use “get_site_url” rather than hard coding the links. I have tried to understand “get_site_url” by searching and reading. But, I just don’t understand how to make the coding changes.

    Can someone show me what the code looks like so that my hard coded links use the site url? Following is the code from my child php style.css:

    <em><a title="AAFords Home" href="http://aafords.com/" target="_blank">Home</a></em> -- Copyright &copy; 2013 - <?php echo date('Y'); ?>
    			AA Fords, All Rights Reserved. Reproduction or publication prohibited without permission. -- <em><a title="AAFords Search" href="http://aafords.com/aafords-search" target="_blank">Search</a>, <a title="AAFords Contact" href="http://aafords.com/aafords-contact/" target="_blank">Contact</a>, <a title="AAFords Links" href="http://aafords.com/aafords-links/" target="_blank">Links</a></em>
Viewing 4 replies - 1 through 4 (of 4 total)
  • I reverted the stonesled.com URL back to the development duckpondwebs.com/ssf hoping to prepare for a fresh start changing the HOME URL.

    Tom

    Thread Starter Neil Wilson

    (@neil-wilson)

    Tom, I must be missing something. What does your post above have to do with my request.
    Help me out here,
    Neil

    Thread Starter Neil Wilson

    (@neil-wilson)

    I figured out how to code the get_site_url function in my hard coded footer links. In the end, it was fairly easy.

    I changed hard coded footer links by replacing the site URL with the code below and tested. This will eliminated doing manual updating for each release.

    <?php echo get_site_url(); ?>

    Apologies, it was a mistake on my part.

    Tom

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page Footer Links – how to use get_site_url’ is closed to new replies.