• Resolved lcool3

    (@lcool3)


    Hello,

    I am in Appearance>Customize>widgets>footer bar

    I want to add a affiliate disclosure to at the bottom of a post but I can’t get it to look right. Every time I add a text widget to footer bar it adds the widget into the footer bar.

    So for example it looks sort of like the text displayed on this site: https://www.afterthecoaldust.com/, where in the footer you see some texts.

    How do I make the affiliate disclosure appear above the “footer.site-info”?

    Does this require custom css?..I’m not a coder but I guess need to add a div container above the footer and add affiliate disclaimer in there.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi.,

    Try this css

    .inside-site-info.grid-container.grid-parent {
        max-width: 86%;
        padding: 15px 0;
        text-align: left;
    }

    If you want further help I’ll be happy to assist.

    Thanks.,
    Rajan V

    Theme Author Tom

    (@edge22)

    Are you wanting to add this disclosure on every single page, or only specific pages?

    Let me know ??

    Thread Starter lcool3

    (@lcool3)

    Hello Tom,

    It is only for specific pages.

    Many thanks,

    Thread Starter lcool3

    (@lcool3)

    However, if easier to stick on every single site I guess using the custom css will have to do.

    My main goal is to have a widget right and the end of the post after the comments section but not actually in the ‘actualfooter.site-info’ css.

    Theme Author Tom

    (@edge22)

    It would likely be better to use a function like this:

    add_action( 'generate_after_content', 'tu_add_html_after_content' );
    function tu_add_html_after_content() {
        if ( ! is_single() ) {
            return;
        }
        ?>
    
        Your message in here.
    
        <?php
    }

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Let me know if that achieves what you’re after or not ??

    Thread Starter lcool3

    (@lcool3)

    Hell Tom + Rajan,

    thanks for the help but I found the answer.

    Its as simple as going into Appearance/customise/layout and selecting footer widgets and selecting footer as one. I can then add a text widget there with a disclaimer.

    Thanks!

    Theme Author Tom

    (@edge22)

    Awesome! Glad you found a solution ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to add affiliate disclosure to Footer’ is closed to new replies.