schubi63
Forum Replies Created
-
YES! Thank you very much
Hi @bradvin ,
a while ago, I could use a paginated gallery, e.g. [foogallery id=”123″ page=”1″] had some text and then used [foogallery id=”123″ page=”2″] and so on. And the gallery was showing the images of its first page, then my text and then the gallery-content of the second page.- This reply was modified 6 months, 2 weeks ago by schubi63.
I tried and it works too, it’s what I was looking for!
I really appreciate your help!If I would have 2 or 3 sliders I would like to exclude? How must the IF condition look like?
Now it works! <3
Merci!!!!!
Hi @kbat82
I added your code. Here is an excerpt of the HTML source:
<div class=”entry-content” itemprop=”text”>
<!–string(4) “1059”
–><p>Ich habe mein „Warum“ gefunden – ich möchte Menschen zum Strahlen bringen.</p>
<p>Ich habe unwahrscheinlich Spaß mit Menschen zu arbeiten. Tauche gerne für eine Weile in deren Welt ein. Freue mich jedesmal, die Individualität die in jedem von uns steckt, zu entdecken. Und wenn dieser eine, besondere Augenblick in Deinem Foto festgehalten ist – bringt das mein Herz zum Singen.</p>
<div id=”metaslider-id-1059″ style=”width: 100%; margin: 0 auto;” class=”ml-slider-3-17-4 metaslider metaslider-flex metaslider-1059 ml-slider myMetaSlider”>
<div id=”metaslider_container_1059″>
<div id=”metaslider_1059″>
…It’s obviously the correct ID 1059 right?
Hi @kbat82
yeah, you are right. The MetaSlides on the offers page can all be randomized. That’s fine. But I wanted to exclude the MetaSlider on the start page.
Hi!
Sorry for the delay. I added
add_filter(‘metaslider_flex_slider_parameters’, function($options, $slider_id) {
if ($slider_id != ‘1059’) return $options;
$options[‘randomize’] = ‘true’;
return $options;
}, 10, 2);to the functions.php under wp-content/themes/myTheme
Was it the wrong functions.php? SHould I have used a different one – e.g. under wp-includes?
…hmmm, I thought it works. But it seems that it does not work – I checked the ID twice now, and exported the content several times. But all MS-Slider are still randomized.
Do I understand something wrong?
Works! Thank you so much!
How does the if condition look like, if I want to have several meta-sliders excluded?
Hi @kbat82
with the code you gave me meta sliders are randomized in static version. Which is cool. But it influences all meta sliders.
Is it possible to have only those randomized, which are set to random in the slide specific settings?
@kbat82 I don’t know how and what that function does, but it works. Thank you very very much!
The only little thing, there is a little flicker when loading / refreshing the site.
Is it possible to have a delay / fade-in, that this won’t happen?@kbat82 First of all: thank you very much for answering! Now I know that I didn’t do anything wrong.
Maybe I’m a bit too less progger than knowing what to do next. I searched for the functions.php but found many. A general one under wp-content, in the theme, but also lots of in several plugins folders. But there is none under plguins/ml-slider.
Do I have to create a functions.php there?
And should I paste the code, you gave me, directly into it? Because of “metaslider_flex_slider_parameters” I’m afraid not, right??
Thanks in advance!
Ok … I found out something.
Mistakenly I thought, that the Simple Static exported site contained these “wrong” characters. BUT the exported files were fine! Simply Static worked fine in this case.
BUT I had to put into that simply static folder a “.htaccess” which contains in my case the following line “AddDefaultCharset UTF-8”
With that line and that .htaccess file within the folder of the simply static export – all my German special characters will be interpreted correctly.
Cheers, Stefan.