• Resolved Neil Wilson

    (@neil-wilson)


    My web site is https://www.fmaatc.org

    I have links in my page footers. These are coded in a child 2012 footer.php style.css

    The links are coded in the style.css for my local host development site and work okay on my local host.

    The duplicator file is uploaded and then run on my host site at iPage to publish the site. All links are converted to the new location except for the links in the footer.

    How can this be resolved? The following is the footer.php code

    [blockquote]
    <div class=”site-info”>
    Home, Site Map — Copyright © 2013 – <?php echo date(‘Y’); ?>
    AA Fords, All Rights Reserved. Reproduction or publication prohibited without permission. — Search, Contact, Links
    </div><!– .site-info –>
    [/blockquote]

    https://www.ads-software.com/plugins/duplicator/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Neil Wilson

    (@neil-wilson)

    The example code above got converted to links and do not reflect the coding (so please ignore the coding). If someone needs to see the code, I will have to figure out how to put it in a post with it being converted.

    Cory Lamle

    (@corylamleorg)

    Hey Neil,

    You will probably have to convert them manually if they were hard-coded… If you want to post your example you need to use the code wrapper not the blockquote…

    Cheers~

    Thread Starter Neil Wilson

    (@neil-wilson)

    So, I am guessing that code wrapper mean using “backticks” maybe? So, here is my code:

    [backticks]
    <div class=”site-info”>
    Home, Site Map — Copyright © 2013 – <?php echo date(‘Y’); ?>
    FMAATC, All Rights Reserved. Reproduction or publication prohibited without permission. — Search, Contact, Links
    </div><!– .site-info –>
    [/backticks]

    Hopefully this will work when I click post

    From your comment I am thinking that the above code in the child footer.php style.css file is considered “hard coded links”. Is that correct?

    I have not found anything on the web telling me of anyway to add content to the footer other that modifying the .php. So, this means that the only way to get these links to work after uploading a site is to replace the code with new links. Bummer – but doable.

    If you know of a way to avoid this double coding, please let me know.
    Regards,
    Neil

    Thread Starter Neil Wilson

    (@neil-wilson)

    Hmm – “backticks” must not be the “code wrapper”. Any hints as to what a “code wrapper” is?

    Thread Starter Neil Wilson

    (@neil-wilson)

    Further Internet searching tell me the [code] and [/code] are code wrappers. So, here is my code using this:
    [code]
    <div class="site-info">
    Home, Site Map -- Copyright © 2013 - <?php echo date('Y'); ?>
    FMAATC, All Rights Reserved. Reproduction or publication prohibited without permission. -- Search, Contact, Links
    </div><!-- .site-info -->
    [/code]

    Thread Starter Neil Wilson

    (@neil-wilson)

    Okay – maybe a backtick is “`”. Never heard of it before. Here is the code using this little character.

    <div class="site-info">
    			<em><a title="Home" href="https://127.0.0.1:4001/wordpress/" >Home</a>, <a title="FMAATC Search" href="https://127.0.0.1:4001/wordpress/fmaatc-search/" >Site Map</a></em> -- Copyright &copy; 2013 - <?php echo date('Y'); ?>
    			FMAATC, All Rights Reserved. Reproduction or publication prohibited without permission. -- <em><a title="FMAATC Search" href="https://127.0.0.1:4001/wordpress/fmaatc-search/" >Search</a>, <a title="FMAATC Contact" href="https://127.0.0.1:4001/wordpress/fmaatc-contact/" >Contact</a>, <a title="FMAATC Links" href="https://127.0.0.1:4001/wordpress/fmaatc-links/" >Links</a></em>
     		</div><!-- .site-info -->
    Cory Lamle

    (@corylamleorg)

    Hey Neil,

    The plugin will only update urls that are in the database and the wp-config.php if those values were set like then you will have to manually change them. The plugin does not scan files and perform updates…

    Thread Starter Neil Wilson

    (@neil-wilson)

    Thanks again for the update.

    I have made a note to myself to manually update any hard coded links outside of wp-config.php. Currently, my site only has hard coded links in the footer.

    Cory Lamle

    (@corylamleorg)

    Instead of hard coding you should use the get_site_url function. If you use that then the urls will automatically be fixed for whatever site you move!

    Cheers~

    Thread Starter Neil Wilson

    (@neil-wilson)

    Okay,
    Thank you for the advice. I spent hours figuring out how to use the get_site_url function. 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(); ?>

    Cory Lamle

    (@corylamleorg)

    Sounds good! Thanks for the update…

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Footer links are not being converted?’ is closed to new replies.