Forum Replies Created
-
AuthorPosts
-
see my test page – even with your controls=1 parameter it works. So – does any lightbox work on your installation?
Or did you miss to setup on Enfold – Theme Options : “Lightbox Modal Window” to mark that field ?you only want that the button opens the youtube iframe video?
like here: https://webers-testseite.de/fullwidth-button-on-slider-to-youtube/
on caption you got the possibility to attach a ( or two) button. The link must be set manually.
you can insert the iframe url form the code you get from youtube ( you even can set the start time in seconds here)
the iframe=true opens the iframehttps://www.youtube-nocookie.com/embed/_c6mLFovnqs?start=97&autoplay=1&iframe=trueby the way – all demos on enfold with sidebar header are non boxed one. Maybe this would be a nice idea for your page too
The link is gone so i can not see now what happend but i would do it this wayyes – and all your troubles gone-
maybe a bit less than 100vh to have for those pages who will fit the socket in viewportFebruary 12, 2019 at 3:58 pm in reply to: button to slide open/hide content like a toggle but wiht a whole section #1065976Ausserdem könntest du mal folgenden Code auch noch probieren; den kann ich via Developer Tools auf deiner Seite nicht simulieren.
Der soll dafür sorgen dass du nicht nur innerhalb eines Toggles immer nur einen auf hast, sondern auch in benachbarten toggles:function only_one_toggle_open_at_the_same_time(){ ?> <script> (function($){ $(window).load(function() { $('.toggler').on('click', function(){ $('.toggler').not(this).next().removeClass('active_tc'); }); $('.toggler').on('click', function(){ $('.toggler').not(this).removeClass('activeTitle'); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'only_one_toggle_open_at_the_same_time');February 12, 2019 at 3:31 pm in reply to: button to slide open/hide content like a toggle but wiht a whole section #1065968well this is something on request long time ago:
https://webers-testseite.de/colorsection-toggle/ich schreibe jetzt mal gerade deutsch, geht mir besser aus den Händen.
Eigentlich steht alles ganz gut auf der Seite.
Ich habe allerdings den Button ( full-width button) unter die Toggle Section gesetzt.

den code musst du dann deinen Wünschen entsprechend anpassen. die Button Beschriftung kannst du dann auch toggeln. Button Anfangstext und im Code sollte aber übereinstimmen!:// color-section toggle function add_custom_toggler(){ ?> <script> (function($){ $(window).load(function () { $('#toggle-color-section').addClass('notseen'); $('.avia-button-wrap.color-section-toggler').click(function () { $('#toggle-color-section').toggleClass('notseen'); $('.avia-button-wrap.color-section-toggler span.avia_iconbox_title').text(function(i, v){ return v === 'Studiengänge, die perfekt zu Ihren Fähigkeiten passen' ? 'Danke für die Info' : 'Studiengänge, die perfekt zu Ihren Fähigkeiten passen' }) }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_toggler');Wenn noch fragen sind – gerne
February 12, 2019 at 2:33 pm in reply to: Color Section Background Video – Un Mute / Activate Sound #1065946Again here is a little tut and demo – maybe you get the solution from that:
https://webers-testseite.de/mute-unmute/first of all you can avoid that menu problem on setting the z-index to 10.
second do you realy want to show always your footer half height of the screen?
or is it the fact you like to avoid on pages with less content that there is at the bottom a gap which has different color then content background?
i would get that result on giving the #main a min-height of 100vhthe linked page is from 2015 and for a layout with header on top.
you have to think of that your header takes away 300px form 100% width – and on responsive case the header width is 27% so for footer width is 73% etc pp.
So you had to calculate the max-width to 1010px ( on default it is 1310px) and the width as a difference etc. pp. –
you see that will be complicate enough.
By the way – you had to give a padding-bottom to #main to see all content under the footer.Well i knew that i can have the whole function:
if (!class_exists('avia_newsbox')) …
in my child theme – but is there a shorter form to do this in child theme?Try first the code above. But it only removes the enfold support for loading google fonts form Google Servers.
But there are a lot of Google Font GDPR conflicts – f.e. on loading a google map the Roboto Font is always loaded. So it might be good to totaly refuse Goolge Server loadingJust because you prevent Google Fonts from loading themes Internally from Google Servers doesn’t mean you can’t still use the stuff in the Enfold settings.
If your fonts are in the Enfold list – you can choose them and use them – only the loading via Google Servers are hampered by this code above.
If you have installed new fonts, you can reintegrate them according to the known method.
f.e:add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Source Sans Pro'] = 'Source Sans Pro:300,300i,400,400i,700,700i'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Source Sans Pro'] = 'Source Sans Pro:300,300i,400,400i,700,700i'; return $fonts; }and you have truely activated the fonts localy?
so here is the code to hamper loading of Google Fonts from google in Enfold
it comes to your child-theme functions.php:add_action( 'init', 'enfold_customization_switch_fonts' ); function enfold_customization_switch_fonts() { global $avia; $avia->style->print_extra_output = false; }by the way – this little plugin i got additionally loaded: remove-google-fonts-references
Allthough it is not tested for new WordPress- on my end i can say that it works for WP 5.0.3.so I have searched the internet in vain for a solution that WordPress does not automatically remove the multiple line breaks.
Perhaps it is a combination of influences from both WordPress and Enfold settings that counteracts this. Here I think a developer has to take a look; my skills aren’t enough for that anymore.
Yes – and again – your search is white color for responsive case – but then header isn*t transparent so- maybe it is better to have your default color then:
(maybe it is necessary to put it in media query for the small screen option)#menu-item-search { color: #109bc5; }To be able to help better a link to the corresponding page would be useful.
The logo you see on transparent header is the logo you set on Dashboard – Enfold (Child) – Header : Transparency Options.Yes but the links are not working – you don’t like the links to be set?
by the way: if you like to have more distance between the spans in responsive case add line-height attribut:.responsive #header_meta .phone-info span { color: #fff; margin-left: 15px; line-height: 25px; }For the logo move we should see a live link to your page. Could be everything
i would do it with this code in telephone extra input field:
<a href="https://link-to-map"><span class="map">XXX</span></a><a href="https://link-to-contact"><span class="contact">YYY</span></a><a href="tel:+492289768293"><span class="tel">ZZZ</span></a>And this would be my quick css entry for it:
.phone-info { float: left !important; position: relative; left: 50%; transform: translateX(-50%); } .responsive #header_meta .phone-info span { color: #aaa; margin-left: 15px; } .phone-info span::before { font-family: entypo-fontello; font-size: 24px; padding-right: 5px; position: relative; top: 4px; } .map::before { content: "\e842"} .contact::before { content: "\e805"} .tel::before { content: "\e854"}you need to adjust that to your needs.
F.e. if you like to colorize the icons:
replace the part above with:.map::before { content: "\e842"; color: #900} .contact::before { content: "\e805"; color: #090} .tel::before { content: "\e854"; color: #009}see here example: https://webers-testseite.de/
-
This reply was modified 6 years, 8 months ago by
Guenni007.
ok – can be closed
something like this: https://webers-testseite.de/mute-unmute/
But Rikard – that would be great if this could be the default behavior. That padding goes to the parentcontainer and not to the image.
every container you like : f.e.:
.postid-2064 #main .container_wrap { background-image: url(https://www.sayitwithstyle.co.uk/wp-content/uploads/2018/03/1920-wide-logo-with-30-opacity.png); background-size: contain; background-repeat: no-repeat; background-position: center center; }but on that case i would delete the background for:
There must be an inline-style on.fpd-container .fpd-main-wrapper { ………… }It’s a bit like an old marriage; you’re willing to work on it, or you give up directly because something doesn’t suit you. But you should not just give up on a well-functioning marriage in which everything fits except for one obstacle.
Sometimes you just have to find a way to make something fit without bending it and yourself.
A change to another person may bring a gain in pleasure in the beginning, but you will also find such a (different) obstacle there. And before you know it, you’re a lonely person whose blemish you’re no longer willing to overlook.
:lol:
From experience, I tell you it’s worth staying tuned for.
PS: I have been with one and the same woman for almost forty years now. That was also worth it. ;)You’re welcome – but
Ismael told you to set the padding to zero : if it’s not effective immediately; try it with !important or it is a caching / merged file reason.But as I said: thanks for the tip – I wouldn’t have noticed that without the A/B comparison.
ok here we go:
( i styled it here only for my page with ID: 2466 – if you want to have it everywhere – remove the if clause – but don’t forget to delete the last but one closing curly bracket then too!)
it is recomended to use a child-theme
both comes to child-theme functions.phpfirst : the container itself placement
add_action('ava_main_header', function() { if(is_page(2466)){ echo '<div class="fixed-tel"> <a id="klick" class="telephone" href="tel:+492289768293"> <span class="phone-icon">+49 228 9768293</span> </a> </div>'; } });Second: the function for animation:
add_action( 'wp_footer', 'fixed_contact_script' ); function fixed_contact_script() { if(is_page(2466)){ ?> <script type="text/javascript"> (function($){ $(function(){ $('.fixed-tel').data('size','big'); }); $(window).scroll(function(){ if($(document).scrollTop() > 10){ if($('.fixed-tel').data('size') == 'big') { $('.fixed-tel').data('size','small'); $('.fixed-tel').stop().animate({ top:'42px' },700); } } else{ if($('.fixed-tel').data('size') == 'small') { $('.fixed-tel').data('size','big'); $('.fixed-tel').stop().animate({ top:'50%' },700); } } }); })(jQuery); </script> <?php } }this comes to quick css:
.fixed-tel { top: 50%; right: -165px; position: fixed; z-index: 10; background-color: #1ecaed; border: 2px solid #fff; border-right: none !important; } #klick { padding: 20px; display: block } .phone-icon::before { content: "\e854"; font-family: entypo-fontello; padding-right: 18px; font-size: 30px; top: 3px; position: relative; } .fixed-tel:hover { right: 0 !important } .fixed-tel a:hover { text-decoration: none } .telephone { color: #fff !important }if you don’t like the hidden part of that telephone field – just set the right positioning to 0 – and remove css for fixed-tel:hover)
if you like to link to your contact page just change href in:echo '<a class="telephone" href="tel:+492289768293">and adapt the content ( maybe the icon to: \e805 )
if you like to have that phone field over the slided in hamburger menu – set the z-index to 1000
some positioning depends on your header height ( and if you have f.e. top bar etc.Result as mentioned above see here: https://webers-testseite.de/impressum/
we now have to look for ipad view – because fixed positioning is always a problem on those mobile devices.
or we go and have some inspiration:
just one moment i try to simplify that code a bit. …
so it might be temporarly not available or not function
https://webers-testseite.de/impressum/maybe you remove the link now ;) on here
-
This reply was modified 6 years, 8 months ago by
Guenni007.
yes – but that is indeed something totaly different. It is a kind of flyout
look for flyout plugins: https://de.wordpress.org/plugins/tags/flyout/
i got this – but it is a premium plugin and costs some money: http://demo.bnecreative.com/flyouts/
if you like the solution with the button on my page – it will be best to have a lifelink from you where you have styled sofar all Elements.
This sticky technique works with a sticky-wrapper div and a sticky element.Tja – maybe it is something like this: https://webers-testseite.de/sticky-elements/
or here with sticky sidebar: https://webers-testseite.de/buttons/if you have a lifelink for us – the class lightbox-added comes with the method above automatically to the image. So i do not understand why your code does not work as it should
See here my test page: https://webers-testseite.de/images-in-table-cells/
-
This reply was modified 6 years, 8 months ago by
Guenni007.
-
This reply was modified 6 years, 8 months ago by
-
AuthorPosts

