Viewing 30 posts - 1 through 30 (of 44 total)
  • Author
    Posts
  • #1120133

    Hello to all,

    I have a problem with my setting menu display.

    On some pc, the menu overflows on my title. I would like it to remain in its place whatever the computer.

    I can send you image capture to show you but I don’t know how I can do this.

    Maybe, is it possible to put menu and sliders in a block in order to keep them in place ?

    In this way there would be no more possibility for the menu to get out of this field…

    Thanks in advance,

    Iceman

    #1120194

    Hey ICEMAN,

    Can you screenshot the issue?

    Best regards,
    Jordan Shannon

    #1120216

    Hi Jordan, how can I send you screenshot pictures ?

    #1120227

    Hi,

    You can use this service:

    https://snag.gy/

    Best regards,
    Jordan Shannon

    #1120316

    the first image is ok and the second is bad.

    I would always like to have the right version whatever the pc.

    Could I put slider and menu in a container ?

    #1120319

    This way, I will be able to set the menu in the container.

    Currently, the menu is set as a percentage of the page and this is unreliable

    #1120592

    Hi ICEMAN,

    It seems to me that in this case it is better to set the margin top for the menu in px not in %.

    Best regards,
    Victoria

    #1121258

    Hi Victoria,
    I will try and come back to you.
    Regards,
    Iceman

    #1121300

    Hi,

    Please let us know the result

    Best regards,
    Jordan Shannon

    #1122149

    Hello everybody,

    I tried but It doesn’t work. I would like my menu , logo and headband stay in the bottom of my slider.
    How can I do that ?

    this is my code

    @media only screen and (min-width: 768px) {
    .page-id-2 div#header_main {margin-top: 40px}
    .page-id-2 div#header_main_alternate {margin-top: 2px}
    .page-id-2 .av_header_transparency #header_main, #top .av_header_transparency .avia-menu.av_menu_icon_beside {background-color: rgba(255, 255, 255, 0.25)!important}
    }
    @media only screen and (min-width: 1366px) {
    .page-id-2 div#header_main {margin-top: 20px}
    .page-id-2 div#header_main_alternate {margin-top: 2px}
    .page-id-2 .av_header_transparency #header_main, #top .av_header_transparency .avia-menu.av_menu_icon_beside {background-color: rgba(255, 255, 255, 0.25)!important}
    }

    If I change 40px or 2px by 400px, nothing is happening. if I change margin-top by margin bottom, nothing happeneing too…

    With px definition, elements are static but they stay in the same place whatever the value (define 20px or 160px
    do not change anything)

    Thanks in advance

    Iceman

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1122374

    Hi Iceman,

    Your code is missing semicolumns and so is invalid. Please validate your code before using it.

    Best regards,
    Victoria

    #1122683

    Hi Victoria,

    Could you give me an exemple with the code I put above ? I think I make this mistake in my entire css file…

    Thanks for helping…

    Regards

    #1123126

    Hey Everybody,

    I wrote correctly my code know.

    @media only screen and (min-width: 768px) {
    .page-id-2 div#header_main {margin-top: 40px;}
    .page-id-2 div#header_main_alternate {margin-top: 2px;}
    .page-id-2 .av_header_transparency #header_main, #top .av_header_transparency .avia-menu.av_menu_icon_beside {background-color: rgba(255, 255, 255, 0.25)!important}
    }
    @media only screen and (min-width: 1366px) {
    .page-id-2 div#header_main {margin-top: 20px;}
    .page-id-2 div#header_main_alternate {margin-top: 2px;}
    .page-id-2 .av_header_transparency #header_main, #top .av_header_transparency .avia-menu.av_menu_icon_beside {background-color: rgba(255, 255, 255, 0.25)!important}
    }

    Could someone help to move the banner at the bottom of my slider ? I tried a lot of issue but It doesn’t work…

    Thanks for helping,

    Best Regards,
    Iceman

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1123282

    Nobody have any idea ?…

    #1123860

    Hello again,
    Please I really need help for my main page.
    If I suppress entirely the CSS code I post above, nothing changes on the display so my CSS code is not taken into account.
    Probably syntax error…
    Best Regards,
    Iceman

    #1123878

    So I worked on my issue. A solution is to make mobile display works if the screen is smaller than width 680px and height 650px.
    How can I define that ?
    Best Regards
    Iceman

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1123896

    I think a good solution is to fix the header in relation to the slider and not in relation to the display but I don’t know how to do It.

    The display is a variable parameter, It changes constantly

    Regards

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1123924

    Hi,

    Thank you for the update.

    Do you want to move the slider above the header?

    Please remove the css code, then add this script in the functions.php file.

    function ava_move_full_screen_slider_above_header(){
    ?>
    	<script type="text/javascript">
    	(function($) {
    		$(document).ready(function($){
    			$("#main > .avia-fullscreen-slider").insertBefore("#header");
    		});
    	})(jQuery);
    	</script>
    <?php
    }
    
    add_action('wp_footer', 'ava_move_full_screen_slider_above_header');

    That should move the slider above the header and it doesn’t have to be adjusted with css.

    Best regards,
    Ismael

    #1123943

    Thank you Ismael, It’s nice of you.
    But, I want to have my menu like in the drawing in private content.

    Regards

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1124186

    Hi Ismael, I hope you received my message.
    Regards,
    Iceman

    #1124619

    Hi

    Sorry for the delay. After adding the script, you can pull the header container upwards with the following css code.

    #header {
        margin-top: -100px;
    }

    The top margin value should be the same as the header height. This is going to move the header within the bottom part of the main slider.

    Best regards,
    Ismael

    #1124772

    Hi Ismael,

    I tried your solution but it doesn’t work (see the result in private content ).

    Moreover header transparency doesn’t work anymore.

    So I replaced my css code by

     #header {
        margin-top: -100px;
    }

    And my child theme functions.php with your suggest is

    <?php // Balise d'ouverture PHP
    
    // ==================================================================
    // THIS IS MY  FUNCTIONS.PHP
    // ==================================================================
    
    function mon_theme_mce_buttons_2($buttons) { 
    array_unshift($buttons, 'styleselect');  
    return $buttons;
    }
    add_filter('mce_buttons_2', 'mon_theme_mce_buttons_2');
    
    function mon_theme_add_editor_styles() {   
    add_editor_style( 'custom-editor-style.css' );
    }
    add_action( 'init', 'mon_theme_add_editor_styles' );
    
    function my_mce_before_init_insert_formats( $init_array ) {  
    $style_formats = array(      
    // Chaque array défini 1 style    
    array(        
    'title' => 'Bouton 1',        
    'block' => 'div',        
    'classes' => 'btn1',      
    'wrapper' => true,          
    ),array(        
    'title' => 'Bouton 2',        
    'inline' => 'span',        
    'classes' => 'btn2',      
    'wrapper' => false,    
    ),    
    );    
    // We add our style to existing ones
    
    $init_array['style_formats'] = json_encode( $style_formats );    
    return $init_array;  
    }
    add_filter( 'tiny_mce_before_init', 'my_mce_before_init_insert_formats');
    
    // Ismael function 
    function ava_move_full_screen_slider_above_header(){
    ?>
    	<script type="text/javascript">
    	(function($) {
    		$(document).ready(function($){
    			$("#main > .avia-fullscreen-slider").insertBefore("#header");
    		});
    	})(jQuery);
    	</script>
    <?php
    }
    
    add_action('wp_footer', 'ava_move_full_screen_slider_above_header');
    
    // My Javascript
    
    function wpb_hook_javascript() {
        ?>
            <script>
              // your javscript code goes
            </script>
        <?php
    }
    add_action('wp_head', 'wpb_hook_javascript');
    ?>

    Best Regards,
    Iceman

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1124951

    Hi,

    Thank you for the update.

    Can we have access to the site? We would like to test the modifications.

    Best regards,
    Ismael

    #1125140

    Hi Ismael,

    Is “temporary-login-without-password” a good plugin for that or maybe do you have another suggest ?

    Regards,

    Iceman

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1125264

    Hi Iceman,

    Yes, you can use this plugin to provide access.

    Best regards,
    Victoria

    #1125474

    Hello to all !

    I retried Ismael solution and it’s work good now !

    My functions.php code is:

    // Ismael function 
    function ava_move_full_screen_slider_above_header(){
    ?>
    	<script type="text/javascript">
    	(function($) {
    		$(document).ready(function($){
    			$("#main > .avia-fullscreen-slider").insertBefore("#header");
    		});
    	})(jQuery);
    	</script>
    <?php
    }
    
    add_action('wp_footer', 'ava_move_full_screen_slider_above_header');

    and my CSS:

    
    .page-id-2 #header {margin-top: -200px;}
    

    in order to apply just for my home page.

    How can I apply my previous transparency setting in order to have the result you can see in screen capture?
    My previous CSS was:

    @media only screen and (min-width: 768px) {
    .page-id-2 div#header_main {margin-top: 520px;}
    .page-id-2 div#header_main_alternate {margin-top: 2px;}
    .page-id-2 .av_header_transparency #header_main, #top .av_header_transparency .avia-menu.av_menu_icon_beside {background-color: rgba(255, 255, 255, 0.25)!important}

    Another important problem after these modifications: the mobile site doesn’t work anymore. The menu does not display correctly and I would like it to be in the top of the mobile site with the logo.

    In fact, I would like the mobile display as it was before the modifications.
    How should I do to make sure that the modifications do not apply to the mobile display ?

    I leave the modifications until tonight because I can not leave the site like that too long so that you can see the malfunctions

    Thanks for your help !

    Best Regards,
    Iceman

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1125599

    I solved the problem of transparency by adding this to Ismael’s CSS code:

     #header {
        margin-top: -200px; background-color: rgba(255, 255, 255, 0.25)!important
    }

    Now I only have the problem of displaying the menu on mobile…

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1125681

    In fact, I would like the mobile display as it was before the modifications.
    How should I do to make sure that the modifications do not apply to the mobile display ?

    Maybe something like that :

    
    $(function() {
    
      if ($(window).width()>480){  }
    
     else{}
    
    });
    

    but I don’t know how to write this….

    Best Regards,
    Iceman

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1125690

    I tried this

    
    // Ismael function 
    function ava_move_full_screen_slider_above_header(){
    ?>
    	<script type="text/javascript">
    	(function($) if ($(window).width()>480)
    
     {
    		$(document).ready(function($){
    			$("#main > .avia-fullscreen-slider").insertBefore("#header");
    			else{}
    		});
    	})(jQuery);
    	</script>
    
    <?php
    }
    
    add_action('wp_footer', 'ava_move_full_screen_slider_above_header');

    It works for mobile but menu and logo disappear from my home page on computer (large sreen)…

    #1125937

    Hello to all,
    if someone can help me with my problem it would be nice because my mobile site does not work properly and I can not find a solution…
    Best Regards,
    Iceman

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