Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1054899

    I have created a custom shortcode and I need to append it to the $builder->setFullwidthElements array found in config-templatebuilder/config.php:

    //set all elements that are fullwidth and need to interact with the section shortcode. av_section is included automatically
    	$builder->setFullwidthElements( array('av_revolutionslider', 'av_layerslider' ,'av_slideshow_full', 'av_fullscreen', 'av_masonry_entries','av_masonry_gallery', 'av_google_map', 'av_slideshow_accordion', 'av_image_hotspot', 'av_portfolio', 'av_submenu', 'av_layout_row', 'av_button_big','av_feature_image_slider','av_tab_section','av_horizontal_gallery','av_postcontent') ); 
    

    I have currently hardcoded the new shortcode to this file in the parent theme, but this is not optimal. What is the recommended method of doing this?

    #1056469

    Hey Switzer,

    Thank you for using Enfold.

    You can use the “avf_fwd_elements” filter to add a new full width shortcode or element to the existing array.

    Best regards,
    Ismael

    #1056509

    Thank you, that is exactly what I was looking for. I was not able to find this thread in my initial search. Again, thanks for the assistance.

    #1056718

    Hi SwitzerBaden,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

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