-
AuthorPosts
-
September 27, 2021 at 1:45 am #1322391
I added a new widget area to show up right above my footer on all pages. I then added some shortcodes from the builder to the widget area. it worked for a few hours and now it is NOT showing up on my site again
site – https://kvldesigngroup.com/
new widget area is called “footertop”. i followed this thread to create that footer area – https://kriesi.at/support/topic/new-footer-widget-full-length-on-the-bottom-of-every-page/
September 27, 2021 at 2:15 pm #1322496Hey navindesigns,
Thank you for the inquiry.
Have you tried using the Page Content shortcode in the widget area? Looks like the page layout is broken. It is possible that there are invalid markup in the widget or there are unclosed html tags. Creating a custom page and displaying it using the Page Content is safer and is less prone to code errors because you will only be using a single line of shortcode.
[av_postcontent link='page,12' av_uid='av-ku2m2bik' sc_version='1.0']
Best regards,
IsmaelSeptember 27, 2021 at 5:21 pm #1322531How/where did you generate ur shortcode below from?
[av_postcontent link='page,12' av_uid='av-ku2m2bik' sc_version='1.0']
September 28, 2021 at 6:22 am #1322573Hi,
Thank you for the update.
That is the default shorcode of the Page Content element. The value “page,12” in the link attribute represents a page with the ID 12. You can enable the debug mode to see the actual shortcodes below the Advance Layout Builder (ALB).
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#debug-mode
Best regards,
IsmaelSeptember 29, 2021 at 3:11 am #1322695so I can use a shortcode like this below in the widget area? just this single line instead of the entire page code like I am currently?
[av_postcontent link='page,12' av_uid='av-ku2m2bik' sc_version='1.0']
- This reply was modified 3 years, 1 month ago by navindesigns.
September 29, 2021 at 3:36 am #1322697Update –
i created a new page with just the links – https://kvldesigngroup.com/footer-top-links/ – the page id is 3116
So I can simply use the following shortcode – [av_postcontent link='page,3116' av_uid='av-ku2m2bik' sc_version='1.0'] and place it in the footer top widget and it will appear on my pages?
September 30, 2021 at 3:40 am #1322895Hi,
so I can use a shortcode like this below in the widget area? just this single line instead of the entire page code like I am currently?
Yes, that is the idea. Make sure that the page is not private. The page above seems to be inaccessible publicly.
Best regards,
IsmaelSeptember 30, 2021 at 3:44 am #1322896I did that but only the shortcodes showing up in the front end
https://kvldesigngroup.com/ – please take a look right above the footer area
what am i doing wrong?
September 30, 2021 at 12:47 pm #1322969Hi,
Could you please go to Enfold theme options > Performance > Scan Widgets for Theme Shortcodes and choose to “scan widgets”?
Cheers!
YigitSeptember 30, 2021 at 2:55 pm #1323015I just did that but it is still not working
October 1, 2021 at 12:31 pm #1323136Hi,
Try to edit the snippet from the previous thread, look for this code.
$output .= $footertop;
Replace it with:
$output .= do_shortcode($footertop);
You may also have to include this filter in the functions.php file.
function avf_custom_exec_sc_only_mod( $exec_sc_only, $obj_sc, $atts, $content, $shortcodename, $fake ) { return true; } add_filter( 'avf_alb_exec_sc_only', 'avf_custom_exec_sc_only_mod', 10, 6 );
Let us know if it helps.
Best regards,
IsmaelOctober 2, 2021 at 3:40 am #1323217changing it to $output .= do_shortcode($footertop); worked. thanks
one last question, if I wanted to exclude this new footer area/widget on certain pages, how can I achieve that?
October 3, 2021 at 5:36 pm #1323344Hi,
Thank you for your patience, to exclude your function from certain pages try changing to this:add_action('ava_before_footer','avia_footer_top_column'); function avia_footer_top_column(){ if( ! is_page( array( 74, 76, 504 ) ) ) { ob_start(); dynamic_sidebar( 'footertop' ); $footertop = ob_get_clean(); $output = "<div class='container_wrap footer_color' id='footertop'>"; $output .= "<div class='container'>"; $output .= do_shortcode($footertop); $output .= "</div>"; $output .= "</div>"; echo $output; } }
and edit the array page IDs to the ones you want to exclude:
74, 76, 504
Best regards,
MikeOctober 3, 2021 at 7:18 pm #1323353Perfect. Thank you!!
One final change, my regular footer widget header title is now dark gray instead of white because of this new footertop that I added.
eg “SITEMAP” and “CONTACT”How do I change those to white again?
October 3, 2021 at 8:26 pm #1323355Hi,
Glad to hear this helped, for the widget titles please try:#wrap_all .main_color h3.widgettitle { color: #fff; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeOctober 4, 2021 at 3:22 am #1323372Perfect. Thank you. I am all set for now. Amazing support as always!
October 4, 2021 at 5:34 am #1323379 -
AuthorPosts
- You must be logged in to reply to this topic.