Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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/

    #1322496

    Hey 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,
    Ismael

    #1322531

    How/where did you generate ur shortcode below from?

    [av_postcontent link='page,12' av_uid='av-ku2m2bik' sc_version='1.0']

    #1322573

    Hi,

    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,
    Ismael

    #1322695

    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?

    [av_postcontent link='page,12' av_uid='av-ku2m2bik' sc_version='1.0']

    • This reply was modified 3 years, 2 months ago by navindesigns.
    #1322697

    Update –

    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?

    #1322895

    Hi,

    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,
    Ismael

    #1322896

    I 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?

    #1322969

    Hi,

    Could you please go to Enfold theme options > Performance > Scan Widgets for Theme Shortcodes and choose to “scan widgets”?

    Cheers!
    Yigit

    #1323015

    I just did that but it is still not working

    #1323136

    Hi,

    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,
    Ismael

    #1323217

    changing 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?

    #1323344

    Hi,
    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,
    Mike

    #1323353

    Perfect. 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?

    #1323355

    Hi,
    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,
    Mike

    #1323372

    Perfect. Thank you. I am all set for now. Amazing support as always!

    #1323379

    Hi,

    Great, I’m glad that Mike and Ismael could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.