Forum Replies Created
-
AuthorPosts
-
to have the shortcode option on polylang first add this to your child-theme functions.php:
function polylang_shortcode($atts, $content = null){ if (empty($content)) return ''; extract( shortcode_atts( array('lang' => ''), $atts ) ); if (empty($lang)) return "<h3>You must specify 'lang' using shortcode: polylang</h3>"; return ($lang == pll_current_language()) ? $content : ''; } add_shortcode('polylang', 'polylang_shortcode');
after that you can insert this :
[polylang lang="en"]english content[/polylang][polylang lang="de"]deutscher Inhalt[/polylang][polylang lang="nl"]Nederlandse inhoud[/polylang]
December 21, 2020 at 12:33 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1269001Mh – that class isn’t added to mediaelementwrapper video : av-mediajs-loaded in Safari!
so the trigger for that function does not exist on safari.
On Firefox and Chrome this class is added when the video has fully loaded.on your link on top there is another interesting snippet – it will insert the oportunity to choose the orderby option on each alb.
https://kriesi.at/documentation/enfold/post-slider/#how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element
then take two blog posts for the newest posts of “Einsätze” and “Neuigkeiten” and for the last one only the randomized one a post slider?
the two show as grid with one column.
On the postslider you can choose the offset not to show duplicate post on the page.
Randomize only that sliderhttps://webers-testseite.de/jakob/
PS : mit dem Snippet oben, könnt ihr dann natürlich auch drei post-slider nehmen.
die zusätzlichen Optionen sind unten platziert:
-
This reply was modified 4 years, 6 months ago by
Guenni007.
December 19, 2020 at 9:31 am in reply to: Can I delete all these random pages the theme comes with #1268587your start point was an imported Demo File? and you now like to delete not used Example Pages
Yes you can delete them – all at once – just mark them in the list view and choose “move to bin” and then “apply”These pages are moved to the bin. However, if you’re sure, you might as well empty the bin now. Especially since it is only then possible to reassign the page name in the permalinks. Many people are surprised when they try to create a new contact page, for example, and it is then listed in the permalinks as /contact-2.
December 18, 2020 at 7:19 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1268480mediaelement-and-player.min.js is part of WordPress – so i guess on one of the last updates ( and as i said i did not update to WP5.6) there must be a sourcecode difference to older WP Versions.
December 18, 2020 at 7:04 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1268476Yes i know – but exactly this code does work on Safari too on former installations.
btw. : this part is only for child-theme shortcodes replacement and should stay in your child-theme functions.php
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths){ $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
December 18, 2020 at 6:48 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1268472these are my two sites ( backgroud-video on slider and on color-section) :
https://webers-testseite.de/mute-unmute-video-slide/
https://webers-testseite.de/mute-unmute/And you are right – that on safari this did not work – with exactly your error log. i tested this on former times on safari too and it worked. So something must have changed in the source code either Enfolds, WordPress or Safari. These Sites above are from 2019-02-13 and color-section site from : 2018-05-01.
By the way: the domain above is still on WP 5.5.3if you look in dev tools – the id ( postid-123 or page-id-123) you can see at the body tag ( #top )
be careful of the hyphen posts do have only one no hyphen between post and id.December 17, 2020 at 2:09 pm in reply to: is it possible to load reCAPTCHA v3 only on needed Pages [UPDATE 2020] #1268125If not today when then one should do something good to a Ludwig.
* Ludwig v. Beethoven baptized on 17.12.1770best whishes from Bonn to the rest of the world ;)
December 17, 2020 at 12:42 pm in reply to: is it possible to load reCAPTCHA v3 only on needed Pages [UPDATE 2020] #1268099try this – i added contact form 7 support – so when the shortcode for contact-form 7 is used the recaptcha script is loaded – otherwise not.
function prohibit_google_recaptcha( $prohibited ){ global $post; if( ! $post instanceof WP_Post ){ return $prohibited; } /*** 1) Check to load recaptcha on given page ID's only*/ $allowed = array( 1396, 1407 ); $prohibited = in_array( $post->ID, $allowed ) ? false : true; /*** 2) Check to not load recaptcha on given page ID's - load on all others*/ $not_allowed = array( 12, 25, 35 ); $prohibited = in_array( $post->ID, $not_allowed ) ? true : false; /*** 3) Get content to check (ALB or normal content) ***/ $content = Avia_Builder()->get_post_content( $post->ID ); $prohibited = ( false !== strpos( $content, '[contact-form-7 ' ) || false !== strpos( $content, '[av_contact ' ) ) ? false : true; return $prohibited; } add_filter( 'avf_load_google_recaptcha_api_prohibited', 'prohibit_google_recaptcha', 10, 1 );
i only use 3) Option to check if contact shortcodes are used.
is this an actual Enfold Version?
this is not the actual Version fo TinyMCE !by the way : how did you insert images here on board – i only see on source-code your links to your posted images.
My images you can see above on the answers.I do not see your private content because i’m participant as you are.
But : a line-break is a break ! if you do not want to have between your images a little space – do insert one image by the other ones without any break
and give a custom-class to the text-block itself like f.e.: images-blockthen:
.avia_textblock.images-block img { display: block }
ok – you got a slideshow – selector is a bit in dependency what kind of Caption you use ( framed etc)
if you only like to have it not vertically centered then Rikards code is to use.
If you want to influence the distance between : avia-caption-title and avia-caption-content
you can use:.postid-3540 .slideshow_align_caption .avia-caption-title { margin-bottom: 20px !important; }
but the code ( if your postid is correct ) had to work too:
here a testpage with only #top h2
maybe you have activated the option : force inline-svg that will transform all :
<img src="image-source.svg" />
to svg itself
then svgs as inline svg needs absolute dimension settings – otherwise they will have 0x0px dimension :img[src*=".svg"], svg { width: 2500px; display: block; }
the front-end width is then done by surrounding container.
the :
color: currentColor !important;
is responsible for the font color. Erase only that line and see if your will be happy with that.
i guess you had to help her – she ( or he – could be both with that nick) – only 2 postings on her history. Maybe that is hard stuff for a beginner
did you copy&paste the line above?
I don’t see any “&” so it can hardly be from my snippet up there.Where did you paste the code?
And can you please post an example code you inserted to your menu?
i can see all the svg (Firefox, Chrome and Safari ) on your site mentioned above ( but https://www.flo-haaf.de )
( but your logo on top comes from .https://ftp.flo-haaf.de
)
so maybe all your browser cache had to be cleaned ? You will surely have checked your site frequently with said browsers, so they may still have the old links in there.on your first post on this topic you are talking about a plugin – but the fix is for something different ?
did you try that button mentioned above?
na dann lass es doch auf !important
da du es ja inline verwendest, und es mit keinem Selektor von Enfold kollidiert – ist es ok.
die original css Anweisung für Überschriften kommt aus:
.main_color h3
versuch also mal ob
h5.gelb etc nicht zum Ziel führtoder eben
.gelb { color: gelb !important }
hast du irgendwelche Caching Tools laufen ; das Merging von Enfold ( Enfold oder Enfold-Child – Leistung ) an – dann refreshe auch diese Files.
denn selbt im Textblock ALB Element gesetzte Farbe für die Schrift überschreibt die inline gesetzte nicht:
Läuft bei dir schon WP 5.6 – siehe: https://kriesi.at/support/topic/problems-after-updating-to-wordpress-5-6-read-this-first/
https://kriesi.at/support/topic/maybe-its-about-time-for-a-sticky-post-regarding-wordpress-5-6/
maybe that is a fix for your mobile menu problem – til they have the next update.
This: https://kriesi.at/support/topic/theme-bug/#post-1267488
is a solution for your ampersand problem i think. ( our “&” symbols )
Put it in quick css field and refresh all caches and if you have css and js merging on ( Enfold – Performance ) – regenerate those files too.December 16, 2020 at 9:13 am in reply to: Dragging Elements While Scrolling screen Issue in Editor #1267712on my installation this drag&drop works well – but
However, I often use this small button on the right side for layouts with a lot of content.
For this it is also useful to collapse the dashboard.
the ALB Elements Bar is then sticky on top – you can scroll the content underneath.After Work is done you have nearby the ALB Elements Bar the buttons for updating the post:
hm where did you ask for menu / mobile menu ?
Hi,
There is a rule that is being created from your CSS that messed up 100 pages of our website and we’ve tried everything and cannot fix it. Bunch of our “&” symbols along with “Subtitles” have suddenly turned Blue color and we can’t do anything to fix this. Need your HELP ASAP website looks like a Zebra, very unprofessional…
how did you insert that code – in textblock element?
if you use this button to enter a break it will insert that code :<br class="avia-permanent-lb" />
the br tags with classes remain in the DOMDecember 16, 2020 at 8:42 am in reply to: Is it possible to have the left menu scrolling along the Homepage? #1267706https://kriesi.at/themes/enfold-consulting/
this is done only with enfold options already – the place ( enfold – general layout) where you have set up the left menu bar – just under it there is the option to fix it.
i would prefer the first option – but if you have a shorter menu Always might also be a good wayTry:
#top.postid-3540 h2 { margin-bottom: 800px!important; }
heading-tags and p-tag and body and div do not have a dot in front – i hope it is only 80px ;)
-
This reply was modified 4 years, 6 months ago by
-
AuthorPosts