-
AuthorPosts
-
October 28, 2020 at 8:41 am #1256285
Hey,
http://www.hotelladdict.se
I want the 4 icon boxes to appear at the same place on all pages, blog post and category pages.
What code shall I add?Thanks
Charlotte
October 28, 2020 at 12:25 pm #1256337Hi Charlotte,
Please do the following:
1. Enable Advanced Layout Builder Debug Mode: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#debug-mode
2. Get the shortcode from the page (debug mode adds a textarea below the content where it shows the shortcodes generated by the page)
– If there are lots of code then you can use templates: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#templates
– Create a template then create a new page, use the template and remove every element except for the 4 icon boxes and copy all the shortcode in the Debugger area.
3. Then add this code at the bottom of your child theme’s functions.php:function enfold_after_main_container() { echo do_shortcode("[some_shortcode]"); } add_action('ava_after_main_container', 'enfold_after_main_container');
just replace [some_shortcode] with the shortcode copied for the debugger.
Hope it helps.Best regards,
NikkoOctober 29, 2020 at 1:56 pm #1256717Thanks Nikko, like this:
and how do add the rest of the code for the 3 other icon boxes?function enfold_after_main_container() {
echo do_shortcode(“[av_icon_box icon='ue821' font='entypo-fontello' title='Boka hotell' position='left' icon_style='' boxed='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='#f7f1e4' custom_font='#5fa5b7' custom_border='#f7f1e4' custom_title_size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' custom_content_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link='manually,https://www.hotelladdict.se/boka-hotel/' linktarget='' linkelement='both' id='' custom_class='' av_uid='av-k64vcr3y' admin_preview_bg=''][/av_icon_box]“);
}
add_action(‘ava_after_main_container’, ‘enfold_after_main_container’);Best regards
CharlotteOctober 29, 2020 at 2:36 pm #1256734Hi Charlotte,
Can you give us temporary admin access? I’ll try to check it and post it here.
Just put the login credentials in private content.Best regards,
NikkoOctober 29, 2020 at 2:37 pm #1256736Thanks Nikko :)
October 29, 2020 at 2:59 pm #1256750Hi charlotteraboff,
Thanks for giving us admin access, this should be the code:
function enfold_after_main_container() { echo do_shortcode("[av_one_fourth first min_height='' vertical_alignment='' space='' row_boxshadow='' row_boxshadow_color='' row_boxshadow_width='10' custom_margin='' margin='0px' mobile_breaking='' border='' border_color='' radius='0px' padding='0px' column_boxshadow='' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' background_position='top left' background_repeat='no-repeat' highlight='' highlight_size='' animation='' link='' linktarget='' link_hover='' title_attr='' alt_attr='' mobile_display='' id='' custom_class='' aria_label='' av_uid='av-713c9l'][av_icon_box icon='ue821' font='entypo-fontello' title='Boka hotell' position='left' icon_style='' boxed='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='#f7f1e4' custom_font='#5fa5b7' custom_border='#f7f1e4' custom_title_size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' custom_content_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link='manually,https://www.hotelladdict.se/boka-hotel/' linktarget='' linkelement='both' id='' custom_class='' av_uid='av-k64vcr3y' admin_preview_bg=''][/av_icon_box][/av_one_fourth][av_one_fourth min_height='' vertical_alignment='' space='' row_boxshadow='' row_boxshadow_color='' row_boxshadow_width='10' custom_margin='' margin='0px' mobile_breaking='' border='' border_color='' radius='0px' padding='0px' column_boxshadow='' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' background_position='top left' background_repeat='no-repeat' highlight='' highlight_size='' animation='' link='' linktarget='' link_hover='' title_attr='' alt_attr='' mobile_display='' id='' custom_class='' aria_label='' av_uid='av-6b29p5'][av_icon_box icon='ue806' font='entypo-fontello' title='Hundvänliga hotell' position='left' icon_style='' boxed='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='#f7f1e4' custom_font='#5fa5b7' custom_border='#f7f1e4' custom_title_size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' custom_content_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link='manually,https://www.hotelladdict.se/hundvanliga-hotell-skane/' linktarget='' linkelement='both' id='' custom_class='' av_uid='av-k64vcr3y' admin_preview_bg=''][/av_icon_box][/av_one_fourth][av_one_fourth min_height='' vertical_alignment='' space='' row_boxshadow='' row_boxshadow_color='' row_boxshadow_width='10' custom_margin='' margin='0px' mobile_breaking='' border='' border_color='' radius='0px' padding='0px' column_boxshadow='' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' background_position='top left' background_repeat='no-repeat' highlight='' highlight_size='' animation='' link='' linktarget='' link_hover='' title_attr='' alt_attr='' mobile_display='' id='' custom_class='' aria_label='' av_uid='av-4st921'][av_icon_box icon='ue81e' font='entypo-fontello' title='Hotelltips' position='left' icon_style='' boxed='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='#f7f1e4' custom_font='#5fa5b7' custom_border='#f7f1e4' custom_title_size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' custom_content_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link='manually,https://www.hotelladdict.se/hotelltips/' linktarget='' linkelement='both' id='' custom_class='' av_uid='av-k64vcr3y' admin_preview_bg=''][/av_icon_box][/av_one_fourth][av_one_fourth min_height='' vertical_alignment='' space='' row_boxshadow='' row_boxshadow_color='' row_boxshadow_width='10' custom_margin='' margin='0px' mobile_breaking='' border='' border_color='' radius='0px' padding='0px' column_boxshadow='' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' background_position='top left' background_repeat='no-repeat' highlight='' highlight_size='' animation='' link='' linktarget='' link_hover='' title_attr='' alt_attr='' mobile_display='' id='' custom_class='' aria_label='' av_uid='av-2icxhl'][av_icon_box icon='ue841' font='entypo-fontello' title='Boka hyrbil' position='left' icon_style='' boxed='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='#f7f1e4' custom_font='#5fa5b7' custom_border='#f7f1e4' custom_title_size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' custom_content_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link='manually,https://www.hotelladdict.se/boka-hyrbil/' linktarget='' linkelement='both' id='' custom_class='' av_uid='av-k64vdwhm' admin_preview_bg=''][/av_icon_box][/av_one_fourth]"); } add_action('ava_after_main_container', 'enfold_after_main_container');
or you can copy it here: https://pastebin.com/Mz3SVeMi
Best regards,
Nikko- This reply was modified 4 years ago by Nikko.
October 29, 2020 at 3:38 pm #1256775Thank you so much :))
Can I add some code so it will have the same padding as the original one : http://www.hotelladdict.se/
Also delete the dotted line that appears on the category pages: https://www.hotelladdict.se/category/danmark/
Best regards
CharlotteOctober 29, 2020 at 6:15 pm #1256837Hi Charlotte,
You’re welcome, can you please replace the previous code I gave to this one (the difference is the two echos added):
function enfold_after_main_container() { echo '<div class="main_color container_wrap_first container_wrap fullsize"><div class="container"><div class="template-page content av-content-full alpha units"><div class="post-entry post-entry-type-page"><div class="entry-content-wrapper clearfix">'; echo do_shortcode("[av_one_fourth first min_height='' vertical_alignment='' space='' row_boxshadow='' row_boxshadow_color='' row_boxshadow_width='10' custom_margin='' margin='0px' mobile_breaking='' border='' border_color='' radius='0px' padding='0px' column_boxshadow='' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' background_position='top left' background_repeat='no-repeat' highlight='' highlight_size='' animation='' link='' linktarget='' link_hover='' title_attr='' alt_attr='' mobile_display='' id='' custom_class='' aria_label='' av_uid='av-713c9l'][av_icon_box icon='ue821' font='entypo-fontello' title='Boka hotell' position='left' icon_style='' boxed='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='#f7f1e4' custom_font='#5fa5b7' custom_border='#f7f1e4' custom_title_size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' custom_content_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link='manually,https://www.hotelladdict.se/boka-hotel/' linktarget='' linkelement='both' id='' custom_class='' av_uid='av-k64vcr3y' admin_preview_bg=''][/av_icon_box][/av_one_fourth][av_one_fourth min_height='' vertical_alignment='' space='' row_boxshadow='' row_boxshadow_color='' row_boxshadow_width='10' custom_margin='' margin='0px' mobile_breaking='' border='' border_color='' radius='0px' padding='0px' column_boxshadow='' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' background_position='top left' background_repeat='no-repeat' highlight='' highlight_size='' animation='' link='' linktarget='' link_hover='' title_attr='' alt_attr='' mobile_display='' id='' custom_class='' aria_label='' av_uid='av-6b29p5'][av_icon_box icon='ue806' font='entypo-fontello' title='Hundvänliga hotell' position='left' icon_style='' boxed='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='#f7f1e4' custom_font='#5fa5b7' custom_border='#f7f1e4' custom_title_size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' custom_content_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link='manually,https://www.hotelladdict.se/hundvanliga-hotell-skane/' linktarget='' linkelement='both' id='' custom_class='' av_uid='av-k64vcr3y' admin_preview_bg=''][/av_icon_box][/av_one_fourth][av_one_fourth min_height='' vertical_alignment='' space='' row_boxshadow='' row_boxshadow_color='' row_boxshadow_width='10' custom_margin='' margin='0px' mobile_breaking='' border='' border_color='' radius='0px' padding='0px' column_boxshadow='' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' background_position='top left' background_repeat='no-repeat' highlight='' highlight_size='' animation='' link='' linktarget='' link_hover='' title_attr='' alt_attr='' mobile_display='' id='' custom_class='' aria_label='' av_uid='av-4st921'][av_icon_box icon='ue81e' font='entypo-fontello' title='Hotelltips' position='left' icon_style='' boxed='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='#f7f1e4' custom_font='#5fa5b7' custom_border='#f7f1e4' custom_title_size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' custom_content_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link='manually,https://www.hotelladdict.se/hotelltips/' linktarget='' linkelement='both' id='' custom_class='' av_uid='av-k64vcr3y' admin_preview_bg=''][/av_icon_box][/av_one_fourth][av_one_fourth min_height='' vertical_alignment='' space='' row_boxshadow='' row_boxshadow_color='' row_boxshadow_width='10' custom_margin='' margin='0px' mobile_breaking='' border='' border_color='' radius='0px' padding='0px' column_boxshadow='' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' background_position='top left' background_repeat='no-repeat' highlight='' highlight_size='' animation='' link='' linktarget='' link_hover='' title_attr='' alt_attr='' mobile_display='' id='' custom_class='' aria_label='' av_uid='av-2icxhl'][av_icon_box icon='ue841' font='entypo-fontello' title='Boka hyrbil' position='left' icon_style='' boxed='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='#f7f1e4' custom_font='#5fa5b7' custom_border='#f7f1e4' custom_title_size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' custom_content_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link='manually,https://www.hotelladdict.se/boka-hyrbil/' linktarget='' linkelement='both' id='' custom_class='' av_uid='av-k64vdwhm' admin_preview_bg=''][/av_icon_box][/av_one_fourth]"); echo '</div></div></div></div></div>'; } add_action('ava_after_main_container', 'enfold_after_main_container');
Best regards,
NikkoOctober 29, 2020 at 6:19 pm #1256845Thanks Nikko,
Much better :) but on mobile it looks the same and I have empty cache.I just want to get rid of the dotted lines that appear on the Category pages-
https://www.hotelladdict.se/category/danmark/Cheers
CharlotteOctober 29, 2020 at 10:53 pm #1256903Help…
The icon boxes where duplicate on the main page so I delete the original ones, not a good idea.I don’t understand how to reactivate them in the Performance settings. Can you login and help me, thanks,
And also help me change so there is not duplicate icons on the main page.
Best regards
CharlotteOctober 30, 2020 at 5:53 am #1256971Hi Charlotte,
I have modified the code I have given:
echo '<div class="main_color container_wrap_first container_wrap
to:
echo '<div id="subheader" class="main_color container_wrap_first container_wrap
then added this CSS code in Quick CSS:
#subheader .iconbox .entry-footer { border: none; }
Best regards,
Nikko- This reply was modified 4 years ago by Nikko.
October 30, 2020 at 7:28 am #1256983Thank you so much Nikko :)
Best regards
CharlotteOctober 31, 2020 at 5:17 am #1257207Hi Charlotte,
We’re glad that we could help :)
Thanks for using Enfold and have a great weekend!Best regards,
Nikko -
AuthorPosts
- The topic ‘Icon boxes’ is closed to new replies.