-
AuthorPosts
-
April 28, 2016 at 11:50 pm #624053
Hey,
So i’ve been creating custom ALB elements following this tutorial and it works fine but i’d like to create custom full width elements, i’ve tried replicating section.php but it looks like it doesn’t inherit its fullwidth-ness.
Thanks.
April 28, 2016 at 11:56 pm #624058Hi Joe!
Try the following, open /config-templatebuilder/config.php and look for this line:
$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') );Replace it by:
$builder->setFullwidthElements( array('CUSTOM_SHORTCODE_HERE', 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') );Change
CUSTOM_SHORTCODE_HEREfor the shortcode of the custom ALB element you want to be fullwidth.Best regards,
JosueApril 29, 2016 at 4:10 am #624098Thanks, that works. It is possible to have this modification on a child theme?
April 29, 2016 at 5:28 am #624103Hm, no not right now unfortunately, but maybe we could add a hook there so you could modify the array via child theme functions.php, i’ll see what i can do.
Regards,
JosueMay 5, 2016 at 12:58 pm #627774A way to hook into FWD elements will be added in the next patch, it will work like this:
function custom_fwd_elements($arr) { $arr[] = 'custom_shortcode' return $arr; } add_filter('avf_fwd_elements', 'custom_fwd_elements', 10, 1); -
AuthorPosts
- You must be logged in to reply to this topic.
