Forum Replies Created
-
AuthorPosts
-
November 2, 2023 at 6:31 pm in reply to: Image “Slightly zoom the image” not working properly #1424431
yes – and please – the update on 5.6.8. does not have that fixed.
test if the other selectors had to be set too!
.avia-image-container.av-hover-grow.av-hide-overflow, .avia-image-container.av-hover-grow.av-hide-overflow .avia-image-container-inner, .avia-image-container.av-hover-grow.av-hide-overflow .avia-image-overlay-wrap a.avia_image { overflow: hidden; }
I take my example page offline again. It was probably not that urgent.
Did you try to embed the layerslider with its shortcode (on Project List hover the preview – click on the 3 dots on the top right – embed) ?
October 29, 2023 at 4:46 pm in reply to: Masonry-Gallery Lightbox Link Settings doesn’t work #1424032Yes – but that is sometimes difficult to realize. A child-theme header.php or footer.php is often easier to manage.
You only need to check after updates if there are significant changes in their parent themes files. Therefore, changes should be well documented (possibly by comments inside).But you use justification there, don’t you?
With justified text, that’s exactly what often happens, that there are unsightly word spacing. You will have the same problem in Word. In Word, a more or less intelligent word separation is set.so you have to decide now what to do if you set a text-block to justify.
By the way – how did you set this? because Tiny Editor does not offer – justified test.you can use hyphens or word-spacing f.e.:
p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
some css properties ( text-justify; word-spacing ) are not well supported by all browsers. see: https://css-tricks.com/almanac/properties/t/text-justify/
f.e.:
p { text-align: justify !important; -webkit-hyphens: auto; hyphens: auto !important; text-justify: distribute; word-spacing: -0.05em !important; text-align-last: left; }
but i would not use everywhere a justification. So it is much better if you set a custom class to those texts that should be justified.
and use the custom class to specified text.btw – with the extra long words, which are separated unsightly, also a manually set “should break points” could be useful.
You can use for that the html entity:­
this is short for softhyphenation – in Word this is called conditional line break
and there is a nonbreakinghyphen entity too Link. for words like “on-page”, “off-page”There is one small catch – both Nikko’s and my solution. Masonries that load further elements with the More Link are not affected by this. You would then have to add attributes, e.g. with MutationObserver, at the moment of entry into the DOM.
f.e. ( in this case for all links in a Masonry )
function open_masonry_entries_in_new_tab(){ ?> <script> (function($) { MutationObserver = window.MutationObserver || window.WebKitMutationObserver; var observer = new MutationObserver(function() { $("a.av-masonry-entry").attr("target", "_blank"); }); observer.observe(document, { subtree: true, childList: true }); })(jQuery); </script> <?php } add_action('wp_footer', 'open_masonry_entries_in_new_tab');
as far as I understood it, only the one link should open in a new tab. The others should open on the same page.
so maybe use instead:
function open_custodiapestcontrol_links(){ ?> <script type="text/javascript"> window.addEventListener("DOMContentLoaded", function () { (function($) { $('.av-masonry-entry[href*="custodiapestcontrol"]').attr('target', '_blank'); })(jQuery); }); </script> <?php } add_action('wp_footer', 'open_custodiapestcontrol_links');
or – if you like to open all external links ( links that have a different domain ) in a new tab ( with some exceptions like mailto etc. )
use:function open_external_links_in_newtab(){ ?> <script type="text/javascript"> window.addEventListener("DOMContentLoaded", function () { (function($) { var url = window.location.origin; $('a').not('a[href*="'+url+'"], a[href*="mailto:"], a[href^="#"], a[href*="tel:"], a[href*="javascript:;"] ').attr({ 'target':'_blank', 'rel': 'noopener', }) })(jQuery); }); </script> <?php } add_action('wp_footer', 'open_external_links_in_newtab');
(remove rel attribute if you do not like to set)
October 28, 2023 at 2:30 pm in reply to: Masonry-Gallery Lightbox Link Settings doesn’t work #1423967have a look if you got a child-theme header.php.
This file in particular has undergone major changes over time. In this case, you should remember why you created a child theme header.php. You should then apply these steps to an up-to-date header.php and upload it instead.Das sollte man noch ein wenig verfeinern, und auch browser übergreifend – zumindest mit -webkit prefix machen.
Das animation timing – eventuell mit bezier Kurve animieren.Es gibt einen hook, in den du ein Bild oder eventuell besser noch ein svg setzen könntest: wp_body_open
Es sollte nicht schwer sein das Bild so mit einem z-index zu belegen, der dann den eigentlichen Inhalt überdeckt. Eine getimete Animation der Transformation sollte dann auch möglich sein.Also für die child-theme functions.php:
add_action('wp_body_open', function() { if(is_front_page()){ echo '<div class="body-overlay"></div>'; } });
für das Quick css:
.body-overlay { position: fixed; display: block; width: 100vw; height: 100vh; top: 0; left: 0; z-index: 5000; animation: transformUp 3s ease 2s forwards; /** for shortform see: https://www.w3schools.com/cssref/css3_pr_animation.php ***/ } .body-overlay { background-image: url(/wp-content/uploads/test-london.jpg); background-repeat: no-repeat; background-size: cover; } @keyframes transformUp { 0% { transform: translate(0px, 0px); } 100% { transform: translate(0px, -102vh); } }
to this topic possibly one more. I have made the experience that plugins like : Post Types Order could interfere here.
it is working nice – but did not involve the portfolio – and i could not find out why. Portfolio are at least posts so – where is the crux?
it would be nice to participate as a participant ;)
next special question :
there is on github a wp-core snippet:
https://github.com/KriesiMedia/enfold-library/blob/master/codesnippets%2C%20tricks%2C%20plugins/WP%20Core/duplicate-posts-and-pages-without-plugins.php
btw. on your docu there is a dead link concerning to this.
It is for duplicate post/pages without plugin. It works – but portfolios are excluded from that trick.
how to include portfolios there ( or better to include a CPT )here is the pastbin page from my edited php: https://pastebin.com/AaiTX8kU
But : this is only a file that is translated inside to english where there are in original spanish terms. On those lines that are visible to users i only had insertet the option to translate strings with avia_frameworki think ismaels code should work.
on looking for this from docu:
click on your CPT on dashboard and look to the url window on top – what post-type you see there
f.e. on portfolio ( which is a CPT too ). you see: edit.php?post_type=portfolio
try a shortform – then with the info you get from that url window
add_filter("avia_post_slide_query", function($query) { unset($query["post_type"]["vacature"]); return $query; }, 10, 1);
yes this works for me too!
even on sortable toggles : https://webers-testseite.de/accordion/so this bug is my fault – one should always check first if something set has to be removed – before adding a new code.
II have tested it, but not stress tested. Means very lush content and fast clicking the toggle headings.
So – although the internet is full of suggestions about this Chrome bug regarding clearing – deleting the floating property is the solution.i’m so sorry – i tested it on my own toggles – and there it worked like a charm –
try this instead ( or in addition)
#top .single_toggle { clear:both; }
but loosing the focus away to top is still on your page a problem – because if you open a toggle – you like to read it – and not to move to the top!
I did not see on your page why the toggles looses their focus – on click all moves to the top. – this is not standard behavior!
Can you try to deactivte the total cache – refresh all cachings and merging of enfold.
Well with your Alias name and a little search i found your page ;)
and on FAQ everything works fine here in OSX Chrome
Edit : . You are right. I see – if you open the 5th or 6th toggle there are again this behavior.
Can you please remove the interims solution with toggle_wrap set to display: none
and refresh all cachings and merging please after that.I had to inspect where we can correct this. – on the enfold page https://kriesi.at/themes/enfold-2017/elements/accordion/ it works as i said as expected.
wow das ging schnell:
ist online – ps habt ihr das noch schnell eingebaut! wahnsinnfixed: CSS for chrome bug accordion toggles do not close properly and leave white space
i think – yes you can shorten it – and maybe you use the css rule google offers – for those wanted font styles:
function avia_add_content_font($fonts){ $fonts['Assistant'] = 'Assistant:wght@300;400;700&display=swap'; return $fonts; } add_filter( 'avf_google_heading_font', 'avia_add_content_font'); add_filter( 'avf_available_google_fonts', 'avia_add_content_font');
the css definition will be :
font-family: 'Assistant', sans-serif;
if you download the font from google there is the variable font inside too. The static fonts are in an extra folder. Did you upload the whole zip to enfold?
In this static folder there are condensed styles too!
_______
But one piece of advice from me is: don’t install too many fonts. The performance of the website will suffer.
As I mentioned in another topic, you should think carefully about whether you should include italic font styles at all. Especially with sans-serif fonts, the slanting of the font on the browser side is often almost identical to the italic font style.If you can do without the support of older browsers, then the variable font might be the better alternative anyway. There, all font styles would be included, and the memory usage is much lower. ( 1,1Mb versus 4,8MB ) .
Next offer modern font style types as woff2. The Google download do offer only ttf. You can upload it with the zip too – but the woff2 will be loaded.
Try this zip ( with only light, regular and bold style (woff2 and ttf) ) – this would be a good way for the most of the websites:
https://webers-webdesign.de/Open-Sans.zipDelete your uploaded font and use it instead.
think of to use them – these uploaded fonts are at the end of the dropdown list on font setting options
nicht dafür ;)
can you try
#top .av_toggle_section { clear:both }
thats indeed a chrome thing only!
October 23, 2023 at 3:35 pm in reply to: Is it possible to hide the “All” sorting tag on the accordion? #1423421October 23, 2023 at 12:55 pm in reply to: Is it possible to hide the “All” sorting tag on the accordion? #1423399ok – as mentioned above – that is much easier because this element got an option to tell the frontend what opens first on load.
i have never seen the sorting option here – sorry.
if you like to get rid of the separator aswell – add to mikes code the first tag-separator:
( first-child will work too ).togglecontainer .taglist a:first-of-type, .togglecontainer .taglist .tag-seperator:first-of-type { display: none; }
Thanks for info.
It sometimes happens that errors creep in when saving to the database. These can be very persistent. Therefore, it often helps to simply create a new page with the same content. For the home page, it doesn’t matter what the original page is called – the addendum will be removed from the permalink anyway. For other pages, you will need to delete the broken page completely in order to give the new page the same permalink.October 21, 2023 at 11:00 pm in reply to: Is it possible to hide the “All” sorting tag on the accordion? #1423271Sorry, I did not see that you were talking about the accordion. But we are talking about which folding element? the accordion has by default an option to choose the opening tab. There are no sorting options. You mentioned partner logos. On this element we do not have sort options. So my suggestion is that you are talking about Masonry or Portfolio Grid. So please clarify your request.
what happens if you are copying the enfold shortcode – and create a new page – and save?
What if you use this copied page to set as homepage?October 21, 2023 at 6:53 pm in reply to: Google durchsucht die Webinhalte nicht – Homepage nicht sichtbar #1423249hast du mal versucht in der Google Search Console zu schauen was die melden:
Anmelden und nachschauen für die Domains.
Ich melde dort alle Seiten die ich verwalte manuell an. Hinterlege dann dort die Sitemap. Und stoße die erste Indexierung dann manuell an._________
Have you tried looking in Google Search Console to see what they are reporting?
Login and lookup for the domains.
I manually register all the pages I manage there. Then I store the sitemap there. And then manually trigger the first indexing.https://search.google.com/search-console
PS : du darfst nicht erwarten das die Bots direkt nach erstellung einer Webseite drübergehen. – daher ist oft Geduld nötig.
Wenn du SEO mäßig gut aufgestellt bist und die Seite performant ist, sollte es nicht allzulange dauern bis die Ergebnisse da sind. – wie gesagt sitemap hinterlegen und index anstoßen hilf hier natürlich.________
PS: you must not expect the bots to go over immediately after creating a web page. – Patience is therefore often necessary.
If you are well positioned in terms of SEO and the page is performant, it should not take too long until the results are there. – As I said, storing a sitemap and initiating an index helps here, of course. -
AuthorPosts