• Resolved paulmc911

    (@paulmc911)


    Hi

    I am working on this site: https://www.bibliophone.com and having some trouble with editing my footer. I’m using Omega and from all the research I’ve done, it’s not the easiest theme to customise the footer of. However, I found that I need to go into hooks.php to find the footer code. So there’s a section that looks like this:

    function omega_default_footer_insert( $settings ) {
    
    	/* If there is a child theme active, use [child-link] shortcode to the $footer_insert. */
    	return '<p class="copyright">' . __( 'Copyright ? [the-year] [site-link].', 'omega' ) . '</p>' . "\n\n" . '<p class="credit">' . __( '', 'omega' ) . '</p>';	
    
    }

    But I want to add to it links to my Disclaimer page and my Privacy Policy page. From my research I THINK that involves using code like this:

    <a href="https://bibliophone.com/disclaimer/">Disclaimer</a> | <a href="https://bibliophone.com/privacy-policy/">Privacy Policy</a>

    BUT…I’m not too sure where to add that in the above, and where the appropriate tags go, so was hoping someone could show me!

    Thank you..

    Paul

Viewing 11 replies - 1 through 11 (of 11 total)
  • @paulmc911, Try to replace the above function with…

    function omega_default_footer_insert( $settings ) {
    
    	/* If there is a child theme active, use [child-link] shortcode to the $footer_insert. */
    	return '<p class="copyright">' . __( 'Copyright ? [the-year] [site-link].', 'omega' ) . ' | <a href="https://bibliophone.com/disclaimer/">Disclaimer</a> | <a href="https://bibliophone.com/privacy-policy/">Privacy Policy</a> </p>' . "\n\n" . '<p class="credit">' . __( '', 'omega' ) . '</p>';	
    
    }
    Thread Starter paulmc911

    (@paulmc911)

    Hey Dipak

    I tried that but nothing – all I have is the copyright bit – the rest of it doesn’t appear at all.

    Thanks for looking at this

    Paul

    @paulmc911, It should display footer like: https://awesomescreenshot.com/0c04dlfe82

    Try to replace with this function, and check whether it only shows Disclaimer and Privacy Policy links in the footer?

    function omega_default_footer_insert( $settings ) {
    
    	return '<p class="copyright"> <a href="https://bibliophone.com/disclaimer/">Disclaimer</a> | <a href="https://bibliophone.com/privacy-policy/">Privacy Policy</a> </p>';	
    
    }
    Thread Starter paulmc911

    (@paulmc911)

    No that still doesn’t do it. I’ve changed that and all I get is still the copyright bit. Nothing else.

    @paulmc911, That’s the only way to amend Omega theme footer.

    Have you installed any WordPress cache plugin? If so then you need to clear the cache, or you might need to clear browser history to see the changes.

    Thread Starter paulmc911

    (@paulmc911)

    Nope – I’ve cleared my cache since the beginning of time and still no change. I’m making these changes in the child theme of my hooks.php by the way. The hooks.php file in my child theme is an exact copy of the one in the parent theme, but with those recent changes made.

    Than try editing real hooks.php file , not childs theme file. Because you need to activate your child theme in appearance-themes to work with child theme.

    And about cache what Dipak meant was not to clear your browser cache, but have you isntalled any cache plugins for wordpess like W3 Total Cache?

    Thread Starter paulmc911

    (@paulmc911)

    Right, that did it! So now that I’ve got the links that I wanted in there, what do I need to do to get the Copyright part back in?
    Thanks guys

    @paulmc911, Use this function. This should get back the copyright part with the links added.

    function omega_default_footer_insert( $settings ) {
    
    	/* If there is a child theme active, use [child-link] shortcode to the $footer_insert. */
    	return '<p class="copyright">' . __( 'Copyright ? [the-year] [site-link].', 'omega' ) . ' | <a href="https://bibliophone.com/disclaimer/">Disclaimer</a> | <a href="https://bibliophone.com/privacy-policy/">Privacy Policy</a> </p>' . "\n\n" . '<p class="credit">' . __( '', 'omega' ) . '</p>';	
    
    }
    Thread Starter paulmc911

    (@paulmc911)

    Ah no worries I figured that one all by myself!

    Thanks so much for all your help. I’m sure I will be back soon…

    @paulmc911, If it’s fixed then can you mark this thread as ‘Resolved’?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Problems adding URLs to my footer’ is closed to new replies.