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

    #973200

    Hey CloudChoice,

    What is the error that you’re getting when the website breaks?

    Best regards,
    Victoria

    #974180

    Hi 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.

    #974503

    Hi,

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

    #974776

    Hi,

    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;
    }
    
    #974986

    Hi,

    Not sure about the problem, do allow us some more time to review it.

    Best regards,
    Basilis

    #977550

    Hello,

    Any suggestion?

    Thanks

    #978128

    Hi,

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

    #978374

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

    #978981

    Hi,

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

    #978993

    Hi Yigit,

    Thanks for the support. They follow in private the data for access.

    Thank you

    #979060

    Hey,

    Editor is missing under Appearance tab. We need to edit the code. Could you please post FTP logins here privately as well?

    Best regards,
    Yigit

    #979080

    Hi,

    Follow the data.

    Thanks

    #979212

    Hey!

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

    #979258

    Hi yigit,

    You change the 'ava_after_main_container' for 'ava_after_main_menu'
    Almost there, BUT

    If 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.

    #980063

    Hi,

    Any suggestion?

    Thanks

    #980109

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

    #980126

    Hi Nikko,

    It´s possibly due to some security block.
    I’ve cleaned it, and I believe you will have no difficulties.

    Thanks

    #981083

    Hello,

    I tried unsuccessfully to allocate the footer, any suggestions?

    #981921

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

    #982058

    Hi Nikko,

    Follow the data to FTP access.

    Thanks

    #984130

    Hi guys,

    Would anyone have any suggestions?

    #985170

    Now 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.

    #986021

    Hi,

    Can anybody help me?

    #986114

    Hi 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

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