-
AuthorPosts
-
July 19, 2019 at 11:02 am #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
July 19, 2019 at 1:56 pm #1120194Hey ICEMAN,
Can you screenshot the issue?
Best regards,
Jordan ShannonJuly 19, 2019 at 2:38 pm #1120216Hi Jordan, how can I send you screenshot pictures ?
July 19, 2019 at 3:30 pm #1120227July 19, 2019 at 7:03 pm #1120316the 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 ?
July 19, 2019 at 7:11 pm #1120319This 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
July 21, 2019 at 11:29 am #1120592Hi 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,
VictoriaJuly 23, 2019 at 8:14 pm #1121258Hi Victoria,
I will try and come back to you.
Regards,
IcemanJuly 23, 2019 at 10:47 pm #1121300Hi,
Please let us know the result
Best regards,
Jordan ShannonJuly 26, 2019 at 1:08 pm #1122149Hello 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, 4 months ago by ICEMAN.
July 27, 2019 at 5:14 pm #1122374Hi Iceman,
Your code is missing semicolumns and so is invalid. Please validate your code before using it.
Best regards,
VictoriaJuly 29, 2019 at 10:29 am #1122683Hi 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
July 30, 2019 at 12:13 pm #1123126Hey 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, 4 months ago by ICEMAN.
July 30, 2019 at 7:59 pm #1123282Nobody have any idea ?…
August 1, 2019 at 11:36 am #1123860Hello 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,
IcemanAugust 1, 2019 at 12:33 pm #1123878So 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, 4 months ago by ICEMAN.
August 1, 2019 at 1:38 pm #1123896I 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, 4 months ago by ICEMAN.
August 1, 2019 at 3:25 pm #1123924Hi,
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,
IsmaelAugust 1, 2019 at 4:41 pm #1123943Thank 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, 4 months ago by ICEMAN.
August 2, 2019 at 2:38 pm #1124186Hi Ismael, I hope you received my message.
Regards,
IcemanAugust 5, 2019 at 3:27 am #1124619Hi
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,
IsmaelAugust 5, 2019 at 3:39 pm #1124772Hi 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, 4 months ago by ICEMAN.
August 6, 2019 at 4:22 am #1124951Hi,
Thank you for the update.
Can we have access to the site? We would like to test the modifications.
Best regards,
IsmaelAugust 6, 2019 at 3:43 pm #1125140Hi 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, 4 months ago by ICEMAN.
August 6, 2019 at 9:00 pm #1125264Hi Iceman,
Yes, you can use this plugin to provide access.
Best regards,
VictoriaAugust 7, 2019 at 12:14 pm #1125474Hello 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, 4 months ago by ICEMAN.
August 7, 2019 at 5:41 pm #1125599I 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, 4 months ago by ICEMAN.
August 7, 2019 at 7:08 pm #1125681In 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, 4 months ago by ICEMAN.
August 7, 2019 at 7:28 pm #1125690I 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)…
August 8, 2019 at 1:02 pm #1125937Hello 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 -
AuthorPosts
- You must be logged in to reply to this topic.