Forum Replies Created
-
AuthorPosts
-
visibility : hidden only hides the logo – but the dimensions stay with it . It is in the position and it is in height and witdth there !
display : none is the way to get rid of it!
but think of responsive case too:.responsive .logo { display: none }if you want to get rid of whole header i have to see life site link – because i don’t know what kind of header you are choosing on enfold options.
Sometimes the nav is in header_main_alternate etc.-
This reply was modified 8 years, 1 month ago by
Guenni007.
is there a live link we can see. ?
by the way here is a nice generator for all icons – favicon, apple-touch icon, etc:
Edit is it the link above than it is no page-id than it is your postid-4665
both goes to function.php of child-theme
1) Logo:
add_filter('avf_logo','av_change_logo_url'); function av_change_logo_url($url) { if( is_single('4665') ) { $url = "https://url_of_your_domain/wp-content/uploads/logo2.png"; } return $url; }2) Favicon:
i don’t think that it will overwrite the favicon set on enfold dialog – so you have to put it in this way and let the field on enfold dialog empty
if you only want to have favicon use:add_action('wp_head', 'ava_add_iconnns'); function ava_add_iconnns() { if( is_single(4665) ) { ?> <link rel="shortcut icon" type="image/x-icon" href="https://url_of_your_domain/wp-content/uploads/favicon1.ico"> <?php } if( !is_single(4665) ) { ?> <link rel="shortcut icon" type="image/x-icon" href="https://url_of_your_domain/wp-content/uploads/favicon2.ico"> <?php } }-
This reply was modified 8 years, 1 month ago by
Guenni007.
well on 4.2 the burger-menu li’s got their own ids – (on 4.12 this was missing) so you can select them via ID.
and on 2nd point – i tested it on my 4.2 installation – it works on all cases. ( on click and on hover – with or without cloneing)yes – i read over it too. – but i guess thats it
yes – nice !
if you can use this class for the not scrolling element ( sticky_element ) now again and again till you have to correct the offset because of different header size. As a class you can use it even on the same page multiple times.On this page with “Assistanat – Communication …” you don’t have to put in the contact form in the same 2/3 row. You can do it as before – but you have to do it in another color-section im you want it in a 1/1 Container.
one thing – your timeline is a bit shifted from the position – don’t know if you have done it by changing icon width
if you like to have it again on the middle of the icons:.avia-icon-list .iconlist-timeline { left: 19px; }By – and
De rien-
This reply was modified 8 years, 1 month ago by
Guenni007.
November 3, 2017 at 11:52 am in reply to: Add WPML language switcher to Fullwidth Sub Menu element #872101if this full-width submenu is an existing one – it could be very simple.
Goto your WPML Options : Language –
there is a button : “add a new language switcher to menu” press that button – a popup window with settings appear. Choose the Menu name and style it !November 3, 2017 at 11:08 am in reply to: How to move social icons to the right in header area? #872088what do you mean by right side of the page
you mean something like this (here on the left) https://fusesocialfloating.000webhostapp.com/fuse-social-floating/there are alot of plugins doing this
November 3, 2017 at 10:33 am in reply to: playing with new demos – visual artist demo on ipad #872079it works as mentioned above – but first i tend to addClass and give to quick css the scroll position – but this way does not work
i think the inline rules overwrites every other rule setso i decided as above to start on background scroll on alb element – set the fixed positon by quick css – and just remove that custom class set on quick css – this way works as wanted.
Everything ok now – on ipad the background-attachment scrolls with the container.
Before – as mentioned there was nothing but the background-color seen.give it to the devolpers a hint to see their demo: https://kriesi.at/themes/enfold-visual-artist/ on iphone/ipad
this is the page where enfold options are shown. Have you more input of the js errors ?
have you managed some entries in your functions.php of child-theme ?November 3, 2017 at 9:14 am in reply to: Change position of heading in top color section with background image #872032i think the best will be if you gave to that color-section a custom class to avoid that all your headings will be placed on top – f.e.: topheading
than insert this in quick css:.avia-section.av-minimum-height.topheading .container .content { vertical-align: top ; }see here: https://webers-testseite.de/colorsection-100percent-with-heading/
the distance could be styled by the padding setup in color-sectionActually everything is already said !
A) erase the codes and custom-classes set by the other method
1) download the script from here: Download
2) Upload that script to your child-theme / js – Folder
3) Embed that javascript file to enfold – put in functions.php of your Child-Theme:function include_sticky_js_file() { wp_enqueue_script( 'stickyelement', get_stylesheet_directory_uri().'/js/jquery.stickyelement.min.js', array('jquery', 'avia-default'), 2, true ); } add_action( 'wp_enqueue_scripts', 'include_sticky_js_file', 100 );4) Give the custom-Class to your element you want to fix : sticky_element
5). This comes to your functions.php of your Child-Theme:add_action('wp_footer', 'include_sticky_values'); function include_sticky_values(){ ?> <script type="text/javascript"> (function($) { $(window).on('load resize', function () { if ($(window).width() > 768) { /*** here comes the code to sticky element***/ $('.sticky_element').sticky('.entry-content-wrapper', { useTransition: false, animate: false, offset: 85 }); /*** here ends the code to sticky element***/ } }).trigger('resize'); })(jQuery); </script> <?php }( in nearly all cases the direct parent element will be : entry-content-wrapper )
6) if you have to adjust the offset because on different pages it might be other settings this part you can add inbetween the commented lines with other custom class of sticky element ( perhaps : sticky_element2, etc.)
$('.sticky_element2').sticky('.entry-content-wrapper', { useTransition: false, animate: false, offset: 50 });7) add this to your quick css to have not the calculated top distance on responsive case
you might adjust this – depending on your settings:
( sticky-scroll is the class added by that script to your sticky elements)@media only screen and (max-width: 767px){ .sticky-scroll {top: 0!important} }8) Think of – that there is no other element in the same color-section under the sticky element – you have to open a new color-section if there are other content under it !
November 2, 2017 at 10:38 pm in reply to: playing with new demos – visual artist demo on ipad #871865my workaround:
i set up on those color-section the background-attachment to : scroll
but give a custom-class to the color-section: bgfixedthat class has only the meaning of setting :
.bgfixed { background-attachment: fixed !important; }on functions.php of my child-theme i detect if the device is an ipad/iphone/ipod :lol
and remove that class only for this devices !add_action('wp_footer', 'remove_class_if_ipad'); function remove_class_if_ipad(){ ?> <script type="text/javascript"> (function($) { $(document).ready(function($){ var deviceAgent = navigator.userAgent.toLowerCase(); if (deviceAgent.match(/(iphone|ipod|ipad)/)) { $('.bgfixed').removeClass('bgfixed'); } }); })(jQuery); </script> <?php }this works with scrolling background.
Info: i don’t know why the other way starting with fixed does not work and addClass and set the background-attachment : scroll !important. ???November 2, 2017 at 7:52 pm in reply to: How to move social icons to the right in header area? #871818do you have a live link to it – and or a screenshot how it should look like
something like this ? https://webers-testseite.de/elegant/
you could have it vice-versa
-
This reply was modified 8 years, 1 month ago by
Guenni007.
November 2, 2017 at 6:15 pm in reply to: How to move social icons to the right in header area? #871790goto your Enfold Options – Header – Extra Elements – Header Social Icons. and choose “Display in main header area”
schöne Grüße nach Berlin !
wenn du das hier setzt dann geht beim Verkleinern des Screens das Logo mit in der Breite:
dadurch floatet das letzte Element nicht mehr um – kurz vorm umschalten des responsive designs auf hamburger menu#header_main_alternate .main_menu ul:first-child { display: inline-flex !important; }and if you like to have a bit illustration that logo got a link too:
#menu-item-114 a:hover img { -webkit-transform: scale(1.1); transform: scale(1.1); -webkit-transition: all 0.5s ease 0s; transition: all 0.5s ease 0s; } #menu-item-114 a img { -webkit-transition: all 0.5s ease 0s; transition: all 0.5s ease 0s; }ok – i see you got it:
if you like to increase header-height now:
#header_main_alternate, #avia-menu { height: 80px !important; } #avia-menu li a { line-height: 80px !important; }you can see it working here: https://webers-testseite.de/weber/
they have the 4.2. – but than code will be different.
please do first all i said above
#header_main_alternate, #avia-menu { height: 80px !important; } #avia-menu li a { line-height: 80px !important; }and duplicate this menu point with the image. etc…
by the way – you have to be a bit earlier to mobile menu – your last menu point flows to next line on some screen width
where to get it: i got mine from envato
duplicate this menu point and place it on top of your menu.
now you have two images in the menu:
set the main_menu logo to display none. ( ZZZ will be the list-item id. – do it and than i will help you to determine)
and on burger menu the same with the logo in the middle positionah – ok that is the trick with the “logo” in the menu.
#header_main_alternate, #avia-menu { height: 80px !important; } #avia-menu li a { line-height: 80px !important; }Did you run already the new enfold 4.2 – because adressing in mobile is much more easy
– edit no – you are running 4.12.duplicate this menu point and place it on top of your menu.
now you have two images in the menu:
set the main_menu logo to display none. ( ZZZ will be the list-item id. – do it and than i will help you to determine)
and on burger menu the same with the logo in the middle positionOn Enfold 4.2 these list-items got there own id – so we could adress it the same way as in main_menu – and we don’t have to count the position.
.main_menu #menu-item-ZZZ { display: none; } #av-burger-menu-ul li:nth-child(5) { display: none; }________________
PPS: if you like to have a gloomy drop-shadow set it to a light color ( yellow. etc)
is it a WPML translation ?
If so – this is not a bug – it is a feature of WPML
This gives you the oportunity to set up a totaly different layout if you wanted.the point is that even the enfold options page on admin has a german and an english settings page.
the way to synchronise it : The wanted page layout – choose (on your site it seems to be the english one.
Go to Enfold – Import/Export. (on top you see there is an english flag ). – Export Theme-Settings FileChange now to german ( you see even on Enfold Admin above a german flag)
Same thing but import now the “english” Theme Settings file.
Don’t know if the quick css is imported too – but i think – yes.________________________
Edit: . ah i see it is a sitepress plugin. But. it might be similar to the description above.
-
This reply was modified 8 years, 1 month ago by
Guenni007.
Try Rikards advice -: Enfold( Child ) – header – header size – custom pixel value
increase the size to 80pxby the way – i think the status quo is more fitting for a music event site and looks better for me too!
and – i think the link on the image should be: http://maratone-soundsystem.net/wordpress/
not #toptry to look what happend if you gave a dropshadow to the “logo”:
#menu-item-114 img { -webkit-filter: drop-shadow(3px 3px 10px #114232) !important; filter: drop-shadow(3px 3px 10px #114232) !important; }it is in the green of the background
A little info about sticky : there is a discussion on css3 experimental position:sticky (-webkit-sticky) and it seems that this will be included in the future browsers. ( it is something in between fixed and relative positioning – as in my solution above) and it should only be necessary to set this css rule and the top bzw bottom value )
see here : https://developer.mozilla.org/en-US/docs/Web/CSS/position#Sticky_positioningfirst of all : these are two different tryings to help you – the one from ismael – one with the including of a given jquery file by me.
You now have to decide.One advantage of the code recommended from me is: it is no fixing position ! Fixed Positioning allways till now goes to troubles on tablet-pcs or ipad/iphones.
my solution goes a different way: it calculates the top positioning concerning to scroll event. If you scroll down the top positioning increases ! and vice-versa.
So the “fixed” element isn’t really one – but it mimics the fixed position.
It works with the positioning relative ! This is something all browser can handle!By the way: this is no contest – it just reminds you to be carefull with fixed positioning.
see the difference and decide by yourself: https://webers-testseite.de/sticky-column/
1) make the screen of your browser window small as on mobile case ( responsive under 768px) and see what happens to the “fixed” elements.2) What if your icon-list has more entries? How do visitors of your site see the rest of your list ( under “Lieu” – if there are some)
i suppose that there are too many dependencies to other js files needed jquery. So every one of these has to be under the jquery loading.
by the way – all those loaders are in script-loader.php in wp-includes (of wordpress itself)
before WP 3.9 i did it sometimes with :
if( !is_admin()){ function load_local_jQuery() { wp_deregister_script('jquery'); wp_register_script('jquery', '/wp-includes/js/jquery/jquery.js', __FILE__, false, '1.12.4', true); wp_enqueue_script('jquery'); } add_action('wp_enqueue_scripts', 'load_local_jQuery'); }but it does not work on new wp
-
This reply was modified 8 years, 1 month ago by
-
AuthorPosts

