Forum Replies Created
-
AuthorPosts
-
July 22, 2018 at 9:43 pm in reply to: Button width & strange apostrophe in front of button name #988494
any link for us?
editing the files means having a child-theme footer.php and maybe insert your own hook
f.e. after the <?php on line 162 of footer.php
do_action( 'ava_in_socket' );
if you have downloaded the buttons.php – please redownload again.
i have inserted that if clause – to avoid inserting id with no value to the other buttons. Thats my careless fault
new version 2018-07-22 works perfect nowJuly 22, 2018 at 12:02 am in reply to: Set YouTube Video or Featured Image to Full Width On Mobile Post #988240try this – that is probably a good approach to the solution
@media only screen and (max-width: 767px) { .big-preview.single-big, .big-preview.single-small { width: 120% !important; max-width: 120% !important; margin: 0 auto !important; position: relative; left: -10% !important; } #main .content { padding-top: 0px } }
maybe you try to enter on css not the phrases : thin, lighter, light, bold etc. Instead use 100, 300, 400, 700 etc
do not use 200 as font-weight – because it is not defined
how did you activate/load the font ?
Enfold list only loads :'Lato' => 'Lato:300,400,700',
-
This reply was modified 6 years, 7 months ago by
Guenni007.
i edited the thread because i see in your css some strange things:
by the way on my Mac newest OSX and Safari / Safari Technology Preview / Chrome / Firefox all is ok with your Headings
First of all : what should a font-weight of 230 do?
where do you get the 200 font-weight?
i only can see 100, 300, 400, 700, 900i think he likes to add an ID to an Enfold ALB Button!
There are scripts to achieve this, but then the class should definitely only exist once! – otherwise you will have double ID conflicts !give the button itself a unique class (in my case: unique-class )
add this to functions.php of your child-theme:function add_ID_to_unique_class() { ?> <script> (function($){ $(document).ready(function(){ $('.unique-class .avia-button').attr('id', 'what-you-like'); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_ID_to_unique_class');
If you have this often – then i would edit that alb element to have an id Input field – put it in child-themes/shortcodes folder and load that.
Instructions: https://webers-testseite.de/edited-enfold-alb-elements/
See here: https://pastebin.com/EE3b0wX4
Download here: https://pastebin.com/dl/EE3b0wX4-
This reply was modified 6 years, 7 months ago by
Guenni007.
So kids so much imagination you should have that you can add !important.
It’s the same code as here: https://kriesi.at/support/topic/using-pngs-instead-of-fontello-icons/#post-985048
Head shake emoji :lolJuly 18, 2018 at 7:47 pm in reply to: What Plugin i can install for hyphenation with Enfold? #987152Ich bin mir aber nicht im Klaren, ob das Plugin oder ein anderes das in Überschriften vermag, wenn ein explizite word-break oder word-wrap Anweisung existiert.
Ausserdem solltes du mit solchen tools sparsam umgehen. Dei Manuelle Methode ist zwar zeitaufwändig, aber dafür Performance schonend. Denn wenn ganze Seiten von dem Plugin nach möglichen hypens durchsucht werden und gesetzt werden müssen geht das ganz schön auf die Server-Power.Eventuell stellt dich ja die normale Trennung zufrieden (nicht die grammatikalisch perfekte):
h1,h2,h3,h4,h5,h6 { hyphens: auto !important }
____________
But I’m not sure if the plugin or any other plugin can handle headlines if there is an explicit word-break or word-wrap statement.
Also, you should use such tools sparingly. Although the manual method is time-consuming, it is performance-saving. Because if whole pages are searched by the plugin for possible hypens and must be set, this goes quite on the server power.hope you uploaded both po an mo files. (because on your zip only the po file is in it)
poedit generates automatically (if you set that mark) both files.where did you insert that do_shortcode block?
maybe you have to put in the echo do_shortcode( ) at that template
but best would be if you open a new topic here on board. Your problem is not realy concerning to this thread here.
July 18, 2018 at 11:26 am in reply to: ENFOLD documentation – add custom font: error in your code example #986899and by the way on mac keyboards there is no sign for it – you find this special backslash on
alt+shift+7
first of all – do you have a custom header.php in your child-theme?
have you a link where this does not work – or where you want that to work.
short-pixel seems to be one solution. But it is “expensive” they have a credit system. And when you’re in a hurry, you just bite the bullet
From nearly 211 MB upload folder size to 54MB – thats ok. and realy – you can’t see a big difference to the “Enfold recalculated Sizes”
ah – onething i have forgotten: you have to shift the content the same value to top ( to adjust the padding-top of color-section)
i did it with the column option for the first column: Custom top and bottom margin margin-top : -52vwsee 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.
-
This reply was modified 6 years, 7 months ago by
-
AuthorPosts