-
AuthorPosts
-
June 14, 2018 at 3:36 pm #972833
Hi,
In the PAGES I using a fixed top menu replacing the normal header. The code (working) is:
[av_section min_height='custom' min_height_px='100px' padding='no-padding' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='' bottom_border_style='' custom_arrow_bg='' id='bback' color='main_color' background='bg_color' custom_bg='#32a5d2' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' av_element_hidden_in_editor='0' av_uid='av-32zbqxs' custom_class=''] [av_codeblock wrapper_element='' wrapper_element_attributes='' codeblock_type='' av_uid='av-2gpcv34' custom_class=''] [av_sidebar widget_area='HAMBURGUER' av_uid='av-bm8mys'] <div class="centrotitulo">[page_title]</div> [/av_codeblock] [/av_section][av_hr class='invisible' height='100' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='ajuste-espaco' admin_preview_bg='' av_uid='av-1ofdwyo']
In the POSTS , I not able to use the same thing because the post´s break the code.
So I’m trying use “ava_after_main_container”The base code:
//Add fixed menu to all POSTS add_action( 'ava_after_main_container', 'ava_after_main_container_mod', 10 ); function ava_after_main_container_mod() { $output = ''; $output .= do_shortcode(" "); echo $output; }
Adding the elements and inserting in my functions.php:
//Add fixed menu to all POSTS add_action( 'ava_after_main_container', 'ava_after_main_container_mod', 10 ); function ava_after_main_container_mod() { $output = ''; $output .= do_shortcode(" [av_section min_height='custom' min_height_px='100px' padding='no-padding' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='' bottom_border_style='' custom_arrow_bg='' id='bback' color='main_color' background='bg_color' custom_bg='#32a5d2' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' av_element_hidden_in_editor='0' av_uid='av-32zbqxs' custom_class=''] [av_codeblock wrapper_element='' wrapper_element_attributes='' codeblock_type='' av_uid='av-2gpcv34' custom_class=''] [av_sidebar widget_area='HAMBURGUER' av_uid='av-bm8mys'] <div class="centrotitulo">[page_title]</div> [/av_codeblock] [/av_section][av_hr class='invisible' height='100' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='ajuste-espaco' admin_preview_bg='' av_uid='av-1ofdwyo'] "); echo $output; }
But unfortunately so far the result is breaking the site.
Any suggestion?
June 15, 2018 at 10:07 am #973200Hey CloudChoice,
What is the error that you’re getting when the website breaks?
Best regards,
VictoriaJune 18, 2018 at 11:29 am #974180Hi Victoria,
Sorry about delay. I did a small correction and no more break the website. BUT there are other problens:
1 – The modification is being applied both in the posts with the pages. I am trying to modify only the posts.
2 – The code is not generated at the top (how I wish), but below the block:
<div id="main" class="all_colors" data-scroll-offset="0"></div>
3 – An error occurs that results in this message in the frontend:
[avia_codeblock_placeholder uid="0"]
If you view source code:
<div class="avia_codeblock " itemprop="text"> [avia_codeblock_placeholder uid="0"]</div>
4 – Posts are being compressed in width.
June 18, 2018 at 10:36 pm #974503Hi,
To use the code only on pages, use
Actually that you are trying to do is ” hackish ” ways and it does make sense that stuff do not look as perfect as they should be…
Best regards,
BasilisJune 19, 2018 at 2:03 pm #974776Hi,
The code is now working just in the POST´s (as desired), BUT the problem is display:
[avia_codeblock_placeholder uid="0"]
I see others have had this problem but there doesn’t seem to be a common fix.
Any suggestions?//Add fixed menu to all POSTS add_action( 'ava_after_main_container', 'ava_after_main_container_mod', 10 ); function ava_after_main_container_mod() { if( !is_single() ) return; $output = ''; $output .= do_shortcode(" [av_section min_height='custom' min_height_px='100px' padding='no-padding' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='' bottom_border_style='' custom_arrow_bg='' id='bback' color='main_color' background='bg_color' custom_bg='#32a5d2' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' av_element_hidden_in_editor='0' av_uid='av-32zbqxs' custom_class=''] [av_codeblock wrapper_element='' wrapper_element_attributes='' codeblock_type='' av_uid='av-2gpcv34' custom_class=''] [av_sidebar widget_area='HAMBURGUER' av_uid='av-bm8mys'] <div class='centrotitulo'>[page_title]</div> [/av_codeblock] [/av_section] [av_hr class='invisible' height='100' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='ajuste-espaco' admin_preview_bg='' av_uid='av-1ofdwyo'] "); echo $output; }
June 19, 2018 at 9:48 pm #974986Hi,
Not sure about the problem, do allow us some more time to review it.
Best regards,
BasilisJune 25, 2018 at 3:53 pm #977550Hello,
Any suggestion?
Thanks
June 26, 2018 at 8:17 pm #978128Hi,
Please use the code as following
add_action( 'ava_after_main_container', 'ava_after_main_container_mod', 10 ); function ava_after_main_container_mod() { if( !is_single() ) return; $output = ''; $output .= do_shortcode(" [av_section min_height='custom' min_height_px='100px' padding='no-padding' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='' bottom_border_style='' custom_arrow_bg='' id='bback' color='main_color' background='bg_color' custom_bg='#32a5d2' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' av_element_hidden_in_editor='0' av_uid='av-32zbqxs' custom_class=''] [av_textblock wrapper_element='' wrapper_element_attributes='' av_uid='av-2gpcv34' custom_class=''] [av_sidebar widget_area='HAMBURGUER' av_uid='av-bm8mys'] <div class='centrotitulo'>[page_title]</div> [/av_textblock] [/av_section] [av_hr class='invisible' height='100' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='ajuste-espaco' admin_preview_bg='' av_uid='av-1ofdwyo'] "); echo $output; }
Best regards,
YigitJune 27, 2018 at 12:09 pm #978374Thanks, I’m almost there.
The
[avia_codeblock_placeholder uid = "0"]
issue has been resolved.However, the widget are broken.
The “Sidebar Blog” widget is inserted in the end of the post, below the comments form.
The “Footer – column1” widgtet is thrown down as well.Apparently the code interferes with the widgets.
I put a sample page to show this.
Any way to get around this?Thanks
June 28, 2018 at 5:36 pm #978981Hi,
If you do not mind, could you please create temporary admin logins and post them here privately?
Shortcodes above need to be adjusted. There might be missing closing tags. The quickest way will be if we check it ourselves :)Best regards,
YigitJune 28, 2018 at 6:07 pm #978993Hi Yigit,
Thanks for the support. They follow in private the data for access.
Thank you
June 28, 2018 at 9:04 pm #979060Hey,
Editor is missing under Appearance tab. We need to edit the code. Could you please post FTP logins here privately as well?
Best regards,
YigitJune 28, 2018 at 9:33 pm #979080Hi,
Follow the data.
Thanks
June 29, 2018 at 9:17 am #979212Hey!
I changed the code to following one
//Add fixed menu to all POSTS add_action( 'ava_after_main_menu', 'ava_after_main_container_mod', 10 ); function ava_after_main_container_mod() { if( !is_single(array(15255)) ) return; $output = ''; $output .= do_shortcode(" [av_section min_height='custom' min_height_px='100px' padding='no-padding' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='' bottom_border_style='' custom_arrow_bg='' id='bback' color='main_color' background='bg_color' custom_bg='#32a5d2' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' av_element_hidden_in_editor='0' av_uid='av-32zbqxs' custom_class=''] [av_textblock wrapper_element='' wrapper_element_attributes='' av_uid='av-2gpcv34' custom_class=''] [av_sidebar widget_area='HAMBURGUER' av_uid='av-bm8mys'] <div class='centrotitulo'>[page_title]</div> [/av_textblock] [/av_section] [av_hr class='invisible' height='100' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='ajuste-espaco' admin_preview_bg='' av_uid='av-1ofdwyo'] "); return $output; }
Please review your website :)
Best regards,
YigitJune 29, 2018 at 11:12 am #979258Hi yigit,
You change the
'ava_after_main_container'
for'ava_after_main_menu'
Almost there, BUTIf you finish using:
return $output;
sidebar and footer are OK, BUT top bue fixed bar not show.If you finish using:
echo $output;
sidebar and the top blue fixed bar are OK, BUT the footer is broken.You can see an example of the correct footer in the private link.
July 2, 2018 at 12:33 pm #980063Hi,
Any suggestion?
Thanks
July 2, 2018 at 3:06 pm #980109Hi CloudChoice,
The footer is wrapped inside the section above it.
I tried to login to your site however I got this error:Persona non grata - Abusive behavior You are out dude!
Best regards,
NikkoJuly 2, 2018 at 3:52 pm #980126Hi Nikko,
It´s possibly due to some security block.
I’ve cleaned it, and I believe you will have no difficulties.Thanks
July 4, 2018 at 11:08 am #981083Hello,
I tried unsuccessfully to allocate the footer, any suggestions?
July 6, 2018 at 9:18 am #981921Hi CloudChoice,
Sorry for the late response.
I tried the first login credential you gave, it works but Editor isn’t available in the Appearance Menu.
The other credential you gave doesn’t work and still returns:Persona non grata - Abusive behavior You are out dude!
Maybe you can give ftp access instead? so it’s easier and safer to modify the code.
Best regards,
NikkoJuly 6, 2018 at 1:45 pm #982058Hi Nikko,
Follow the data to FTP access.
Thanks
July 11, 2018 at 11:23 am #984130Hi guys,
Would anyone have any suggestions?
July 13, 2018 at 2:31 pm #985170Now I using:
//Add fixed menu to all (ID 15255) POSTS add_action( 'ava_after_main_menu', 'ava_after_main_container_mod', 10 ); function ava_after_main_container_mod() { if( !is_single(array(15255)) || is_archive() || is_tag() ) return; $output = ''; $output .= do_shortcode(" [av_section min_height='custom' min_height_px='100px' padding='no-padding' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='' bottom_border_style='' custom_arrow_bg='' id='bback' color='main_color' background='bg_color' custom_bg='#32a5d2' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' av_element_hidden_in_editor='0' av_uid='av-32zbqxs' custom_class=''] [av_textblock wrapper_element='' wrapper_element_attributes='' av_uid='av-2gpcv34' custom_class=''] [av_sidebar widget_area='HAMBURGUER' av_uid='av-bm8mys'] <div class='centrotitulo'>[page_title]</div> [/av_textblock] [/av_section] [av_hr class='invisible' height='100' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='ajuste-espaco' admin_preview_bg='' av_uid='av-1ofdwyo'] "); echo $output; }
BUT no solution to the problem at the moment.
July 16, 2018 at 6:01 pm #986021Hi,
Can anybody help me?
July 16, 2018 at 10:02 pm #986114Hi CloudChoice,
We apologize for the late response.
We’re having a hard time accessing your site, ftp doesn’t work and it’s the same with your wp-admin login.
Can you try to after echo $output, try echo out one or few more closing divs, it might help fix the broken footer.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.