Footer Global Block 02

Hi,
I’m trying to set up a footer global block, like I did before in this thread >>> https://theme.co/apex/forum/t/footer-global-block/50683/2.

I’m using the renew stack. I was able to change the code in my file manager. However, it did not take effect on the site. Did I do something wrong? It worked for my topbar.

Can you please look into this for me?

Thanks in advance

Hi @quituck,

Thanks for reaching out.

You mean you have applied the code recommended on that thread? It appears not implemented, please check this

Please make sure the code is implemented :slight_smile:

Thanks!

I pasted the following code into my wp-footer.php file following this path >>> public_html/wp-content/themes/x-child/framework/legacy/cranium/footers/views/renew/wp-footer.php and nothing happened.

?>

<?php x_get_view( 'global', '_footer', 'widget-areas' ); ?>

  <?php if ( x_get_option( 'x_footer_bottom_display' ) == '1' ) : ?>

    <footer class="x-colophon bottom" role="contentinfo">
     <?php echo do_shortcode( '[cs_gb id=475]' ); ?>
    </footer>

  <?php endif; ?>

<?php x_get_view( 'global', '_footer' ); ?>

?>

What am I doing wrong? Please advise.

Thank you!

Hello @quituck,

After further investigation, it turns out that the footer is not displaying because it is disabled.
Please go to X > Theme Options > Footer and enable the “Bottom Footer”.

If you need anything else we can help you with, please let us know.

I did and it’s still not displaying.

Hey @quituck,

The Footer Menu, Footer Social and Footer Content are still deactivated.

You need to activate at least one of them if you want something to display in the footer area.

I do have the bottom footer on. It’s not working.

Hello @quituck,

Even with the Bottom Footer turned ON, it is not enough. You still have to activate the Footer Menu, Footer Social and Footer Content. I went ahead and enabled it for you.

Please check your site now.

Yes the footer is on but it is not displaying the global block I created.

Update: I have the global footer displaying now.

Hey @quituck,

I went ahead and commented out the following code

<?php echo do_shortcode( x_get_option( 'x_footer_content' ) ); ?>

And added the following code instead:

<?php echo do_shortcode( '[cs_gb id=475]' ); ?>

in wp-footer.php file located in /x-child/framework/legacy/cranium/footers/views/renew/. Now your global block is displaying fine. Please clear your browser’s cache and check the site now.

Hope this helps!

I I thought I did that. Anyway, Thank you. I just have one problem now. There is padding around the footer section. How do I remove that?

Hi @quituck,

To remove the padding and margins around the footer section, please add the following code in the Theme Options > CSS:

.x-colophon.bottom {
    padding: 0 !important;
}
.x-colophon.bottom .x-colophon-content {
    margin: 0 !important;
}

If you want to make the footer fullwidth, edit your wp-footer.php file located in your child theme and remove the container from your code:

<div class="x-container max width"></div>

Let us know how this goes!

Problem Solved.

Thank you so much for all of you help.

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.