Forum Replies Created
-
AuthorPosts
-
July 10, 2018 at 10:00 am in reply to: Unable to get responsive images or videos working with layers #983553
ok – you can see here on my webdesign page https://webers-webdesign.de
that even a video ( this is a selfhosted video) works well on adv. layerslider – even on small screens (by the way on modern mobile advices too). So there must be some inconsistancies on your setting. Did you try a different image? Is it a reproduceable effect? Did you recognize that it is on a specific screen width range (f.e. between 768 and 990px )Edit: on slider settings / misc – there is an option : “Use srcset attribut” – which on default is enabled i guess.
sometimes not all images are present in the set. (some cleaning plugins looking for not used images maybe have erased those resolutions) – maybe that causes the fault on your page. Try to disable it – empty all caches and caching tools ( even the browser cache) – if that was the error – you can regenereate the all thumbnails for this image to have a complete srcset – and reactivate this option againEdit2: for what is the colorsection before the slider with that 1px hr in it?
Why don’t you use the full-width slider element (not the full-screen one) with your video as one slide.
you don’t have the need to have caption or buttons. and you can set up the video to loop. The only thing is that the controlelements can’t be completely hidden for vimeo videos. So the user could pause the video. After some time the control elements are hidden on default.
result see here: https://webers-testseite.de/video-tut/you have no content over your video – so no reason to have here a color-section.
for the burger menu – you can do this:
#av-burger-menu-ul { vertical-align: top !important; padding: 125px 0 !important; } .html_av-overlay-side #top #wrap_all .av-burger-overlay li a { line-height: 1.8em; }
and you have to find a solution for ipad ( your menu is than not the hamburger ones) and some menu points float over the following content.
best could be to break the menu at 990px (Enfold Menu Options Dialog)
___________
for your logo on small screens :
@media only screen and (max-width: 767px) { .responsive #top #wrap_all .container { width: 95%; max-width: 95%; } .main_menu ul:first-child > li > a { padding: 0 8px !important; } }
and a bit more elegant but not as mighty as the code above is to have on enfold options dialog under the favicon input field an apple touch icon input field ! : put this to your functions.php of your child-theme (all credits goes to the other Günter)
function my_avf_option_page_data_add_elements( array $avia_elements = array() ) { $slug = "avia"; $id = 'favicon'; $new_element = array( "slug" => "avia", "name" => __( "Apple Icon", 'avia_framework' ), "desc" => __("Specify an Apple Touch Icon for your site.", 'avia_framework')." <br/>".__("Accepted formats: .png", 'avia_framework')."<br/>".__("best format will be 158px in square", 'avia_framework'), "id" => "avia_appleicon", "type" => "upload", "label" => __( "Use Image as Apple Icon", 'avia_framework' ) ); $found = false; $index = 0; foreach( $avia_elements as $key => $element ) { $index++; if( isset( $element['id'] ) && ( $element['id'] == $id ) && isset( $element['slug'] ) && ( $element['slug'] == $slug ) ) { $found = true; break; } } if( ! $found ) { $avia_elements[] = $new_element; } else { $avia_elements = array_merge( array_slice( $avia_elements, 0, $index ), array( $new_element ), array_slice( $avia_elements, $index ) ); } return $avia_elements; } add_filter( 'avf_option_page_data_init', 'my_avf_option_page_data_add_elements', 10, 1 );
July 7, 2018 at 8:35 pm in reply to: Unable to get responsive images or videos working with layers #982568why don’t you try the other sliders ( they have buttons options and headings options – and they are on default responsive)
fullwidth-slider and fullscreenslider – i think the first fits for you
see here: https://webers-testseite.de/video-tut/-
This reply was modified 6 years, 7 months ago by
Guenni007.
you always can add those icons like this (but i think this is yigits code – with more options):
add_action('wp_head', 'ava_add_icons'); function ava_add_icons() { ?> <link rel="shortcut icon" type="image/x-icon" href="/wp-content/uploads/icons/favicon.ico"> <link rel="icon" type="image/x-icon" href="/wp-content/uploads/icons/favicon.ico"> <link rel="icon" type="image/gif" href="/wp-content/uploads/icons/favicon.gif"> <link rel="icon" type="image/png" href="/wp-content/uploads/icons/favicon.png"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon.png"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-57x57.png" sizes="57x57"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-60x60.png" sizes="60x60"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-72x72.png" sizes="72x72"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-76x76.png" sizes="76x76"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-114x114.png" sizes="114x114"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-120x120.png" sizes="120x120"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-128x128.png" sizes="128x128"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-144x144.png" sizes="144x144"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-152x152.png" sizes="152x152"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-180x180.png" sizes="180x180"> <link rel="apple-touch-icon" href="/wp-content/uploads/icons/apple-touch-icon-precomposed.png"> <link rel="icon" type="image/png" href="/wp-content/uploads/icons/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="/wp-content/uploads/icons/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/wp-content/uploads/icons/favicon-96x96.png" sizes="96x96"> <link rel="icon" type="image/png" href="/wp-content/uploads/icons/favicon-160x160.png" sizes="160x160"> <link rel="icon" type="image/png" href="/wp-content/uploads/icons/favicon-192x192.png" sizes="192x192"> <link rel="icon" type="image/png" href="/wp-content/uploads/icons/favicon-196x196.png" sizes="196x196"> <meta name="msapplication-TileImage" content="/wp-content/uploads/icons/win8-tile-144x144.png"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-navbutton-color" content="#ffffff"> <meta name="application-name" content="homeurl.de"/> <meta name="msapplication-tooltip" content="homeurl.de"/> <meta name="apple-mobile-web-app-title" content="homeurl.de"/> <meta name="msapplication-square70x70logo" content="/wp-content/uploads/icons/win8-tile-70x70.png"> <meta name="msapplication-square144x144logo" content="/wp-content/uploads/icons/win8-tile-144x144.png"> <meta name="msapplication-square150x150logo" content="/wp-content/uploads/icons/win8-tile-150x150.png"> <meta name="msapplication-wide310x150logo" content="/wp-content/uploads/icons/win8-tile-310x150.png"> <meta name="msapplication-square310x310logo" content="/wp-content/uploads/icons/win8-tile-310x310.png"> <?php }
a nice but german page to create those different sizes is: web-stuebchen.de
so for a list of page you can use array or to exclude one page the is not
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo){ if( is_page(21) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage21.jpg"; } elseif ( is_page( array( 42, 54, 6 ) ) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage22.jpg"; } elseif ( is_page() && !is_page(1307) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage23.jpg"; } return $logo; }
And one curly bracket is missing on your code above.
One closes the if clause – and the second closes the function ( after return logo – as mikes code above)ich kenne den Inhalt jetzt nicht – da wäre es schön der wäre schon platziert.
Ich würde der grauen Colorsection – wie Ismael sagt – eine custom-class geben zB: ueberstand
und vor allem kein padding festlegen noch eine mindesthöhe !!!
___
I don’t know the content now – it would be nice if it was already placed.
I would give the grey color section – as Ismael says – a custom-class e.g.: ueberstand
and especially no padding nor a minimum height !!!dann in das quick css:
then into the quick css:.ueberstand { height: 100px !important; } .ueberstand .container { position: relative; top: -50%; }
du kannst das hier mal sehen mit einem bild in der color-section:
you can see this with an image in the color-section:
https://webers-testseite.de/buttons/wenn ein Slider direkt oberhalb liegt (oder ein advanced slider) denke ich müßte man auch noch einen z-index für diese “ueberstand”-Sektion hinzufügen
if a slider is directly above (or an advanced slider) I think you would have to add a z-index for this “ueberhang” section too-
This reply was modified 6 years, 7 months ago by
Guenni007.
As far as i see it does not work on my end.
the thing is that the p tag of e-mail input field is to high and lays over the div tags of your 2 columns.
First of all – if you use enfold settings you will be on a good way – follow Ismaels advice: https://kriesi.at/support/topic/getting-multi-columns-using-contact-form-7/#post-286490you can give the div surrounding the 2 columns a min-height of 50px
or you do not mix different tags here – stay using div tags .then we will see if this is solved:
-
This reply was modified 6 years, 7 months ago by
Guenni007.
or you simply use the modal window (lightbox) version of Google Maps – you even did not need any api key for that. – And big Advantage – if you place a notice to the privacy notices, it is probably best GDPR compliant.
See here : https://kriesi.at/support/topic/google-maps-gdpr-dsgvo/#post-981135
something like: Google Map
yes my test did it as Mike said:
<a href="https://goo.gl/67u9gx" target="_blank" rel="noopener">Youtube Channel</a>
same shit different name. Must work without any extra css or code
Well i do not see that mixed content message. So maybe it is only a caching problem on your devices;
but I don’t see any instructions for loading the font either on your siteby the way if you like to support browser independent font usage you can transform your font into woff , woff2 etc on fontsquirell:
https://www.fontsquirrel.com/tools/webfont-generatorBy the way – i like the use of lightbox and gmaps.
The thing you put in on a code-block element is something like this:
<h3> Google Map </h3> <label> <a class="googlemap" href="https://maps.google.de/maps?q=1+Ludwig-Schopp-Straße+27,+53117+Bonn,+Deutschland&hl=de&iframe=true"><img src="https://webers-testseite.de/wp-content/uploads/maps.png" alt="Google Map" /></a> </label>
the link in that code-block for your Address is concerning to Google: https://developers.google.com/maps/documentation/urls/guide
On German – with hl=de it will only work with :https://maps.google.de/maps?q=
and + (plus) separated Adress data.the code above must then be added additionally.
function googlemap_script() { ?> <script> (function($){ $('<label><input class="google-privacy" type="checkbox" /> yes - I have read the <a href="/datenschutzerklaerung">privacy policy</a> regarding Google Maps</label>').insertBefore('.av_gmaps_confirm_link'); $('<label><input class="google-privacy" type="checkbox" /> yes - I have read the <a href="/datenschutzerklaerung">privacy policy</a> regarding Google Maps</label>').insertBefore('a.googlemap'); $('a.googlemap').css( 'display' , 'none' ); $('a.av_gmaps_confirm_link.av_text_confirm_link').css( 'display' , 'none' ); $('.google-privacy:checkbox').prop('checked', false); $('.google-privacy:checkbox').click(function() { $('a.googlemap').toggle($(':checkbox:checked').length > 0); $('a.av_gmaps_confirm_link.av_text_confirm_link').toggle($(':checkbox:checked').length > 0); }); })(jQuery); </script> <?php } add_action('wp_footer', 'googlemap_script');
Big advantage – you wouldn’t even need a Google Api key for this – and bypasses the new payment method of Google as well
I simply added a text block and wrote the text in it
you did not wrote this to the text input field – my guess is that it is copy/pasted from a different html page and inserted into the text-block alb element.
this is no normal text – it is styled with different divs , spans etc pp.
how should a justify influence such a construction. these are all single sentences in different containers.this is normal input for a avia_textblock without any divs or spans:
Rent Lake Como SRL was created to provide high quality rental international services in the Lake Como area. From apartment or villa rent to particular requests you may have during your holiday, we cover them all. A young, experienced and creative team is responsible for your comfortable vacation. We believe that renting a villa or an apartment is a much better value than a hotel room, as it gives you more space for the same price or cheaper and you live like a local or as if you were home. Plus, you have the convenience of an experienced concierge like ours, who can give you any service you need. Enjoy your stay and feel free to contact us anytime.
The p-tags are set if you make a return on your keyboard (which you do not see even in text editor mode but in source-code they are set.)
this is what you have inserted i guess via copy/paste on the text:
so you need to edit that first<div class="template-page content av-content-full alpha units"> <div class="post-entry post-entry-type-page post-entry-460"> <div class="entry-content-wrapper clearfix"><section class="av_textblock_section "> <div class="avia_textblock av_inherit_color "> <div> <div class="WordSection1"> <div class=""><span class="" lang="EN-US">Rent Lake Como SRL was created to provide high quality rental international services in the Lake Como area.</span></div> <div class=""><span class="" lang="EN-US">From apartment or villa rent to particular requests you may have during your holiday, we cover them all.</span></div> <div class=""><span class="" lang="EN-US">A young, experienced and creative team is responsible for your comfortable vacation.</span></div> </div> </div> <div> <div class="WordSection1"> <div class=""><span class="" lang="EN-US">We believe that renting a villa or an apartment is a much better value than a hotel room, as it gives you more space for the same price or cheaper and you live like a local or as if you were home. Plus, you have the convenience of an experienced concierge like ours, who can give you any service you need. Enjoy your stay and feel free to contact us anytime.</span></div> </div> </div> </div> </section></div> </div> </div>
try then :
#top.page-id-460 { text-align: justify !important; }
Do you mean this text: Rent Lake Como SRL …
i guess you have inserted it by copy and paste from maybe a word doc ? there is no p tag in that pasted text. it is in a span tag.so if you don’t want to influence all avia_textblocks (team element etc) with:
#top.page-id-460 .avia_textblock { text-align: justify !important; }
you have to edit this text-block and copy paste into the text not the visual editor mode, to have there p-tags.
by the way : justified text can be very ugly – to avoid this there is a nice multilingual plugin called hyphenator.
deleted …
just brainstorming again …
is it only one button in that text-block ?
i do not test it yet – but do you think in days of GDPR (DSGVO) it is a good advice to use google recaptcha?
Test it if some infos will go out without any action just on loading the page!but to shorten this – save your child-theme header.php on your desktop device ( Mac , PC etc)
erase that child-theme header.php – erase all cached datas (browser cache , enfold merged files ) then and look if your lightbox troubles are gone – if not it must be something else.
so if they are identical why do you have one on child-theme ?
by the way this is only part of header.php isn’t it?
this is missing on comparison to 4.4.1.
wp_head(); ?> </head> <body id="top" <?php body_class( $rtl_support . $style." ".$avia_config['font_stack']." ".$blank." ".$sidebar_styling); avia_markup_helper(array('context' => 'body')); ?>> <?php do_action( 'ava_after_body_opening_tag' ); if("av-preloader-active av-preloader-enabled" === $preloader) { echo avia_preload_screen(); } ?> <div id='wrap_all'> <?php if(!$blank) //blank templates dont display header nor footer { //fetch the template file that holds the main menu, located in includes/helper-menu-main.php get_template_part( 'includes/helper', 'main-menu' ); } ?> <div id='main' class='all_colors' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container']; do_action('ava_after_main_container'); ?>
but on animating that – i see this is better coding (shifting the whole box instead of content) – with same setting:
.equalboxes .iconbox.iconbox_top { position: relative; top: -100px; background-color: transparent !important; } .equalboxes .iconbox.iconbox_top { margin-bottom: -100px; } @media only screen and (max-width: 767px){ .equalboxes { margin-bottom: 80px !important; } }
hey Vinay – you read my solution –
that’s exactly my recommendation. The equal height columns are provided for that behavior. The problem is, when I put an icon box into it with all its styling ( background, border, border-radius etc) , it looks like it’s still not the same height ( allthough the surrounding column has same height)
I mimic, so to speak, an icon box by putting one in a column and leaving out the styling of the icon box – except for the icon itself. The appearance of the iconbox I take over then with the Columns. So border, border-radius, background etc.1) so my code above moves the on top icon over the border of the column (top: -100px) – that it looks like the iconbox itself.
moving the whole content to top border of the column results in a big empty bottom which is corrected via the negative margin of iconbox_content_container2) The transparency option is for having the chance to style the column as if it was the iconbox with border, border-radius , background.
you see it here – without that custom-class and with block-content settings : https://webers-testseite.de/equal-height/#without
1) that custom class goes to the 1/3 column – each! the 1/3 columns are set to equal height !
2) take in the 1/3 columns your icon-boxes with on top big icon – but no borders ( these settings you make to your 1/3 columns)the thing is to have equal height columns which looks like iconboxes – so edit the columns than with border , border-radius and maybe a background-color etc.
please show me the link to your site
-
This reply was modified 6 years, 8 months ago by
Guenni007.
why do you have a header.php in child-theme.
On default it is not necessary. So there must be a reason for that. You have to remember why. Often it is because of inserting an extra div or something like that.
Since Enfold 4.2.2 there is a different header.php in enfold. A lot of users who are updating from that older version to 4.4.1 have the same problem with lightbox. So copy a new header.php from the enfold 4.4.1 folder to your child-theme folder and see if the lightbox troubles are gone.
Then you have to know why you got a child-theme header.php so that you can transfer the old changes to the new copyon Enfold Options – Layout Builder : activate: Show element options for developers
Then you will have on the most alb elements a new input field for custom-class
I would use the enfold resources to achieve it. Because equal-height columns are suitable for this. The look if you use iconbox is not equal height because only the icon-box content gets a background – the columns itself are equal height.
So the setup for that should be : icon-box with icon on top above the title – but with no borders !!!
every column ( in your case 1/3) gets the custom-class: equalboxes
and is now styled this way you like ( border , background, padding etc) padding is important because it looks without very ugly.The icons must be styled with colors background and icon color:
then do this to quick css:
.equalboxes .iconbox_top .iconbox_content { position: relative; top: -100px; background-color: transparent !important; } .equalboxes .iconbox_content_container { margin-bottom: -100px; } @media only screen and (max-width: 767px){ .equalboxes { margin-bottom: 80px !important; } }
see result: https://webers-testseite.de/equal-height/
if you have updated from an older Version before 4.2.2. and are you working with a child-theme? – one reason could be – if you have a child header.php ? maybe it is not the newest one – so update that to 4.4.1 too. You know the reason for child-theme header.php on your setting than – to edit it in the same way.
-
This reply was modified 6 years, 7 months ago by
-
AuthorPosts