Forum Replies Created
-
AuthorPosts
-
see here responsiveness with color-section – but if content is determing the container height of the color section this will not work.
With all its settings like transparency and overlay color.
very important: the color-section has no padding no min height !!!
and the color-section gets the custom class: resp-containerthe code is set for that page only – you have to adapt this to your needs – maybe you omit the if-clause
this comes to functions.php of your child-theme:function responsive_background_video(){ if ( is_page(32661)){ ?> <script> (function($){ $('body').on('DOMNodeInserted', function(){ $('.resp-container iframe').addClass('resp-iframe'); $('.resp-container').css({ "position": "relative", "overflow": "hidden" , "padding-top": "56.25vw" }); $('iframe.resp-iframe').css({ "position": "relative", "top": "0" , "left": "0", "width": "100vw" , "height": "56.25vw" , "border": "0", "-webkit-transform": "scale(1.4)", "-ms-transform": "scale(1.4)", "transform": "scale(1.4)" }); $('.resp-container .av-section-color-overlay').css({ "top": "-56.25vw" }); }); })(jQuery); </script> <?php } } add_action('wp_footer', 'responsive_background_video');
this is for 16:9 Videos only
by the way – very nice trick with DOMNodeInserted
last try from my side here: you see that example page with your video: https://webers-testseite.de/video-tut/
Isn’t that the thing you like to optain?
You can not have full height and responsiveness. These are conditions that are mutually exclusiveIf you have some content in front of the video – i can understand your request. But without the best way is to use the full-width video slider
by the way – there are some jQuery scripts which did that job for you.
if there was an image with same name but with a given suffix ( guenni2.jpg versus (Email address hidden if logged out) ) and the pixel ratio is more than 2 it will show the alternative image.you can see it here: http://webers-testseite.de/weber/retina/
the image on the left is the same resolution as the guenni2.jpg but i renamed it to guenni1.jpg
on the right there is the guenni2.jpg – if you look to that right image on retina displays the better resolution image is shown. ( (Email address hidden if logged out) )you mean something like this:
for making a difference between highresolution screens – like apple retina displays ?add_filter('avf_logo','av_change_logo_url'); function av_change_logo_url($url){ if (window.devicePixelRatio >= 2) { $url = "http://www.domain.com/wp-content/uploads/retina-logo.jpg"; } else { $url = "http://www.domain.com/wp-content/uploads/normal-logo.jpg"; } return $url; }
July 17, 2018 at 3:30 pm in reply to: What Plugin i can install for hyphenation with Enfold? #986475yes it is best influence if you do the custom-class to the p tag or span where your text is in.
But it will work too if you do the class to a parent container.
see example here https://webers-testseite.de/hyphenator/
you see on the first two columns that there are dashes at the end of a line – and break the word with grammatical rules._________________
But looking to your Examples i think you are talking about something different.
You can influence Words behavior on shrinking screen width. A lot of Enfold Headings do not break on very small screens. This might result in an overlapping heading over the container border.you can set this via css – see here the usage with trials :
https://www.w3schools.com/cssref/css3_pr_word-break.asp :tryhttps://www.w3schools.com/cssref/css3_pr_word-wrap.asp :try
https://www.w3schools.com/cssref/pr_text_white-space.asp :try
https://www.w3schools.com/cssref/css3_pr_hyphens.asp :try
on a lot of input fields you can enter manual “predetermined breaking point” for example for long headings – where you like to decide where a word break:
soft hyphen = discretionary hyphen­
or­
the last code you have to set a semicolon after the 3 – boardsoft did change it imediately – even if i insert it in code tags here
did you try that code above by copy / paste ?
the advantage is that the image floats to the text.
by the way – you can style a text-block as you like it and insert that shortcode to that copyright input field like:
[av_textblock]<img class="alignright size-full" src="https://www.weddingplannersintuscany.com/wp-content/uploads/2018/07/rmw-thelist-official-supplier.png" width="120" height="120" />Wedding Planners in Tuscany by Luccaorganizza Viale Agostino Marti, 415 - 55100, Lucca. Email: (Email address hidden if logged out) Phone +39 0583 952440 • Mobile +39 328 2930862 • P.IVA 01616520464.[/av_textblock]
yes i know – and you can see on may test-page ( https://webers-testseite.de/portfolio-item/pirol-hifi/ ) that the code above works well for my Enfold 4.4.1
there are a lot of portfolios but- only two with “category” frontside – and only these two are shown.
i do not know why it works on my installtion (4.4.1) and on your setup not.if you got a shop cart symbol there – it might be better to move the social bookmarks before the nav
i changed the code in the topic on top too – because this is more logical to do it the other way roundfunction change_menu_position() { ?> <script> (function($){ $('.main_menu ul.social_bookmarks').insertBefore($('.main_menu div.avia-menu')); })(jQuery); </script> <?php } add_action('wp_footer', 'change_menu_position');
PS: no adjustment needed as i can see on your site – looks good
well my first input to that was to move the two things in the DOM.
because I am intensifying my knowledge about jQuery, I have a solution here, but I think it must be easier done. I looked at the helper-main-menu.php, but couldn’t find anything at first sight.
Maybe there is a solution via the filter: avf_main_menu_nav
It now depends on which headers you use. You may need to make adjust it for the transparent headers. The icons follow the shrink behavior. You still have to determine the transparency font color.this to functions.php of your child-theme
function change_menu_position() { ?> <script> (function($){ $('.main_menu ul.social_bookmarks').insertBefore($('.main_menu div.avia-menu')); })(jQuery); </script> <?php } add_action('wp_footer', 'change_menu_position');
this to quick css:
#top nav .social_bookmarks { margin-top: -20px !important; overflow: visible !important; height: 40px !important } .avia-menu.av_menu_icon_beside { padding-right: 0; margin-right: 0; border-right-width: 0; border-right-style: none; } .social_bookmarks li a { height: 40px !important; line-height: 40px !important; width: 40px !important; } #top .social_bookmarks li { width: 40px; height: auto !important; } #top .av-logo-container .social_bookmarks li a { border-radius: 50%; } .av_header_transparency .social_bookmarks li a { color: #969696 !important; }
the exact positioning of the social-bookmarks is then only possible if i have your life link afterwards.
ah sorry for missunderstanding – i see your issue now.
about 140 topics started – and you realy don’t know how to use the code tag here on board.?
If you want to have such a long code checked, it would be good if we didn’t have to edit it a lot. Because Boardsoft converts many tags and special characters to other characters.
this is very time-consuminglooks good – i will test it soon.
and by the way – what should a linebreak in a code-block do?
this is the code for the path to your child-theme/lang folder to activate for child lang filesfunction language_file_child_theme() { $lang = get_stylesheet_directory().'/lang'; return $lang; } add_filter('ava_theme_textdomain_path', 'language_file_child_theme');
do not forget to empty all cache you use (browser cache, enfold merged files, other plugins)
if you use the child-theme option you have to set that path to the new files.
My advice is to preserve the folder and make a subfolder to your child-theme called lang
then do this to your functions.php of your child-theme:function overwrite_language_file_child_theme() { $lang = get_stylesheet_directory().'/lang'; return $lang; } add_filter('ava_theme_textdomain_path', 'overwrite_language_file_child_theme');
ok – this seems to be not working anymore on the newest enfold:
add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); function enfold_customization_postnav($entries, $settings) { $entries['prev'] = get_next_post($settings['same_category']); $entries['next'] = get_previous_post($settings['same_category']); return $entries; }
there is something new on Enfold 4.4.1 – so please try:
add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); function enfold_customization_postnav($entries, $settings) { $entries['prev'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); $entries['next'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); return $entries; }
but this works on my 4.4.1 install:
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod'); function avia_post_nav_settings_mod($settings) { if(is_singular('portfolio')) { $settings['taxonomy'] = 'portfolio_entries'; $settings['same_category'] = true;} return $settings; }
Or you can use the very good translator from deepl.com to translate those english phrases
July 15, 2018 at 3:46 pm in reply to: What Plugin i can install for hyphenation with Enfold? #985662I think the best thing will be to edit the translation files itself.
-
This reply was modified 6 years, 11 months ago by
Guenni007.
July 15, 2018 at 8:15 am in reply to: What Plugin i can install for hyphenation with Enfold? #985610As you mentioned the word to look for is hyphenation – and the WordPress Plugin is Hyphenator : https://de.wordpress.org/plugins/hyphenator/
i’m very happy with that – i often use it on pages where my customers like to have justified text.Hyphenator automatically inserts separators in the content, so that at the end of line the text is wrapped with a dash if applicable. Hyphenator.js, a JavaScript available under the terms of LGPL v3, is used. It fields the algorithm known from OpenOffice and LaTeX. As this is executed client-sidedly, it adapts itself to the respective browser environment and thus avoids a faulty display. The script is particularly suitable for justification and supports a variety of languages.
to avoid unnecessary use of the whole thing, you simply assign a user-defined class (default is hyphenate) for the textblocks you like to hyphenate in that manner.
hm stange – you see here on Enfold 4.4.1 that portfolio – it has only one other portfolio in the same “category” = frontside
and you see that there is only that other portfolion in the left right navigation: https://webers-testseite.de/portfolio-item/pirol-hifi/to have vice-versa post navs you can use this:
add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); function enfold_customization_postnav($entries, $settings) { $entries['prev'] = get_next_post($settings['same_category']); $entries['next'] = get_previous_post($settings['same_category']); return $entries; }
and sorry i did not read that it is a portfolio:
the portfolio “categories” aren’t real categories – they are ( as for events too) taxonomies:add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod'); function avia_post_nav_settings_mod($settings) { if(is_singular('portfolio')) { $settings['taxonomy'] = 'portfolio_entries'; $settings['same_category'] = true;} return $settings; }
PS: please use for code the code block element on top of the input field:
click once code – enter your code – click it a second time
or enter your code – activate the whole code you entered with your mouse – press once code button.
the code is therefore difficult to read and to check – in addition, certain characters are converted by Boardsoft. The code in the code block can be copied and inserted directly to your functions.php of your child-theme-
This reply was modified 6 years, 11 months ago by
Guenni007.
July 14, 2018 at 1:23 am in reply to: Remove Background on Mobile Devices for Home Page Elements #985351and you realy mean mobile devices and not smaller screens?
you can try this:
.avia_mobile .home #av_section_1 .av-parallax { display: none !important; } .avia_mobile .home #av_section_1 { background: #7db9e8; background: -moz-linear-gradient(45deg, #7db9e8 0%, #ffffff 80%); background: -webkit-linear-gradient(45deg, #7db9e8 0%,#ffffff 80%); background: linear-gradient(45deg, #7db9e8 0%,#ffffff 80%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7db9e8', endColorstr='#ffffff',GradientType=1 ); } .avia_mobile .home #av_section_2 .av-parallax { display: none; } .avia_mobile .home #av_section_2 { background-image: -ms-linear-gradient(top, #FFFFFF 0%, #DDDDDD 100%); background-image: -o-linear-gradient(top, #FFFFFF 0%, #DDDDDD 100%); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FFFFFF), color-stop(100, #DDDDDD)); background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #DDDDDD 100%); background-image: linear-gradient(to bottom, #FFFFFF 0%, #DDDDDD 100%); }
can you please try this instead in your functions.php of your child-theme:
add_filter( 'avia_post_nav_settings', 'enfold_customization_same_cat' ); function enfold_customization_same_cat( $s ) { $s['same_category'] = true; return $s; }
the link to your image is correct – but your css entry has a different link !
this is what is in your css:
.myicon .av-icon-char { background-image: url('http://wpg.com.gridhosted.co.uk/wp-content/uploads/dynamic_avia/wpg.com.gridhosted.co.uk/wp-content/uploads/2018/07/myicon.png'); background-size: contain; background-repeat: no-repeat; background-position: center center; }
maybe you have to erase the old merged css files of your enfold !
-
This reply was modified 6 years, 11 months ago by
Guenni007.
your link in the css to the image is not correct:
.myicon .av-icon-char { background-image: url('http://wpg.com.gridhosted.co.uk/wp-content/uploads/2018/07/myicon.png'); background-size: contain; background-repeat: no-repeat; background-position: center center; }
on uploading my images – i do not want to have a recalculation – because my images are best optimized as possible.
so i sometimes have that function :add_filter( 'jpeg_quality', create_function( '', 'return 100;' ) );
but on that customer site i do not have this in use.
on Enfold 4.4.1 this is set by default ? – but even if so – the algorithm seems to be a bit strange.
My images are on compression level (Photoshop) from 35 to 60%) depends on the content.
decompress – crop – compress will cause in more memory size but less sharpness.
In times where f.e. mozjpeg is able to nearly create good compression good resolution images it might be good to have this for creating the cropped image sizes.PS Optimus free only handels images less than 100kb
nearby – the selector is not the iconbox_icon:
.myicon .av-icon-char::before { visibility: hidden; } .myicon .av-icon-char { background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png); background-size: contain; background-repeat: no-repeat; background-position: center center; }
by the way the kriesi logo above has a lot of transparency arround the logo. If you do not have this space the image will be bigger.
-
This reply was modified 6 years, 11 months ago by
-
AuthorPosts