[resolved] Adding privacy & terms in class-main-footer.php (7 posts)

  1. RustyWood
    Posted 1 year ago #

    I need to add a link to the privacy page and the terms & conditions page from within the class-main-footer.php ideally centered below the 'footer_credits'
    Does anyone know the php for this?
    Thanks in advance


  2. rdellconsulting
    Posted 1 year ago #

    Rather than hack code, you could use the 3 Footer Widget Areas One-Two-Three.

    Use the standard Text Widget and add the HTML into there.

    Should look something like:
    <a href="http://www.mysite.com/privacy/" target="_blank">Privacy Statement</a>

    The /privacy/ is the slugname you can see when you Quick Edit the Page.

  3. RustyWood
    Posted 1 year ago #


    Thanks for the help. I know I could do that but I want to keep the widgets for other data/images etc.

    I would rather keep the links centered below the 'footer_credits'

  4. acub
    Posted 1 year ago #

    Copy /customizr/parts/class-main-footer.php to [your child theme]/parts/class-main-footer.php and modify it to suit your needs. Save & upload. It will have priority over the one in the parent theme and it will be kept over future upgrades of Customizr.

  5. RustyWood
    Posted 1 year ago #


    Thanks, I've already adjusted the 'footer_credits' in the class-main-footer.php of the child theme.

    I was asking how to add links in the php code so the privacy page and the terms & conditions pages can be centered below the 'footer_credits' and linked to their relative pages.

  6. acub
    Posted 1 year ago #

    On line 91 of class-main-footer.php, before </div>, insert your html code. This is an example:

    <p> &middot; <a href="/conditions" title="Terms & Conditions">Terms & Conditions</a> &middot; <a href="/privacy" title="Privacy">Privacy</a> &middot; </p>

    Change the hrefs, titles and texts of the anchors to whatever you need. The middots are just for design, to mimic the style of the rest of footer content. If you want them on different rows insert a

    <br />
    between the links.

  7. RustyWood
    Posted 1 year ago #


    Appreciate the help, managed to sort it out now.

    thanks very much

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.