BTW also tried adding specific CSS that I found elsewhere in this forum to the Quick CSS settings but didn’t result into what I wanted.
Cfr. https://kriesi.at/support/topic/how-to-add-margins-or-padding-on-the-left-and-right-sides-of-the-content-only/
Hi,
Sorry for the confusion. I was looking at the columns below that section. Please try this css code instead.
.responsive #top #wrap_all #two-col .flex_column {
width: 47%;
clear: none !important;
min-height: 230px;
float: left;
}
.responsive #top #wrap_all #two-col .flex_column_table .av-flex-placeholder:nth-child(2) + .flex_column, .responsive #top #wrap_all #two-col .flex_column_table .av-flex-placeholder:nth-child(6) + .flex_column {
margin-left: 6%;
}
Best regards,
Ismael
Danke !
Dann kann ich das jetzt auch in dem entsprechen Topic so mal weitergeben. ;)
da ja die html_entry_id_123 immer auch der page / post /portfolio etc. entspricht könnte man dann durch kommata getrennt es für mehrere Seite umdefinieren. Cool !
hat den Vorteil, das selbst für den html hintergrund es über die socket bg definiert wird – und so bei Seiten mit wenig Content das auch gesetzt wird.
function my_avf_dynamic_css_after_vars( $output = '' )
{
$output .= "\n";
/*** Override a defined var for a specific page id*/
$output .= ".html_entry_id_46364 , .html_entry_id_2407 {\n";
$output .= "--enfold-header-color-bg: #aaa;\n";
$output .= "--enfold-header-color-bg2: #aaa;\n";
$output .= "--enfold-main-color-bg: #aaa;\n";
$output .= "--enfold-footer-color-bg: #aaa;\n";
$output .= "--enfold-alternate-color-bg: #aaa;\n";
$output .= "--enfold-alternate-color-bg2: #aaa;\n";
$output .= "--enfold-socket-color-bg: #aaa;\n";
$output .= "--enfold-socket-color-border: #aaa;\n";
$output .= "}\n";
return $output;
}
add_filter( 'avf_dynamic_css_after_vars', 'my_avf_dynamic_css_after_vars', 10, 1 );
Hi,
Thanks for the update, so the problem is resolved for now? Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hello.
We have been experiencing two serious problems for many months now.
1) Gallery images whose links (“custom links”) are to videos (not to the images themselves) are not loading when a page visitor first visits a given webpage. This is an intermittent problem affecting MANY pages. It is forcing us to advise web page visitors that they must refresh the page to see the images. The web page link in the Private Content is an example;
2) Oftentimes, the Color Section background image in a color section at the top of a page simply does not load. This too is an intermittent problem affecting MANY pages, for example the same page whose link is in the private content.
NOTE:
1) This does NOT happen when these pages are loaded on a smartphone or small screen tablet.
2) This DOES happen both on password-protected pages AND pages that are public.
What is the solution that will solve this problem?
Thank you.
again btw:
sometimes it is neccessary to have such a divider over a slider – because there is no option on having dividers on fullwidth-sliders – you can use the top-divider option of the next section and transform it over the slider:
https://webers-testseite.de/divider-on-sliders/
Hey,
ich habe schon länger ein Problem mit dem Einbindung von custom fonts. Ich habe es mit dem Import und mit @font-face probiert. Leider ohne Erfolg.
Ich habe zwei Schriften “Calibri” (für Headlines) und “Poppins” (für body) installiert. Auf dem Desktop sah das auch alles ganz schick aus, jedoch auf dem iPhone wurden der body Text nicht richtig angezeigt.
Nun habe ich noch etwas herum probiert, die Schriften in allen Formaten hochgeladen und nun wird der body Text auch fälschlicherweise in Calibri angezeigt und ich bekomme das nicht geändert. Angeblich ist in #top die Calibri definiert, aber ich finde den CSS Code dafür nicht, um das zu ändern. Und auf dem iPhone wird die Headline Schrift auch nicht in bold-cursiv angezeigt.
Was habe ich übersehen, um die Schriften auf allen Geräten richtig und optisch gleich darzustellen?
Hi,
Thanks for the update.
You may need to set a minimum height to the columns. Please try to replace the css with this code:
.responsive #top #wrap_all #two-col .flex_column {
width: 47%;
clear: none !important;
min-height: 230px;
}
Best regards,
Ismael
Hi,
Ismael made the last change, so he must have felt this was a better location.
I notice that you are not using a Child Theme, I recommend using one and add all of your customizations to it, otherwise you will lose them the next time that you update the theme.
If you do not want to use a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:

and ensure that it is activated, then add your customizations.
Best regards,
Mike
Hey lauragrashoff,
Thank you for the link to your site, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field and adjust the font sizes to suit:
#top.single-post #wrap_all #main .container_wrap_first h1 {
font-size: 60px;
}
#top.single-post #wrap_all #main .container_wrap_first h2 {
font-size: 30px;
}
#top.single-post #wrap_all #main .container_wrap_first p {
font-size: 20px;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Thanks that did work nicely!. Oddly that extra space appeared on one phone we looked at and not another after all, but in both cases it looks fine now. So, great.
I have a more general question though in terms of applying css with the advance developer options :
I have this in that Custom CSS field under developer settings: remove-space
and this css in general styling to move the div up:
@media only screen and (max-width: 767px) {
.remove-space{
margin-top: -40px !important;
}
}
which is working nicely on another place where the spacing needed a tweak. My only question is is there any issue when targeting only the mobile version in using a negative number for the top margin? If this is kosher which I think it is I can stop asking for help targeting things as we have been one at a time when I can’t figure out the right place win the code to target when the inspecting the element.
Again thank you for your excellent support and patience as always.
Tony
I’m trying out this code, but I think it changes both the mobile and desktop versions. At least, that’s what the page speed is indicating.
I want to find a way to change the Featured Image size for mobile. I want to display a 480×268 image on mobile and a 1200×670 image on desktop. Can you help me out? Thanks!
Hi Guenni,
i added your css and it looks very good in desktop resolution for large screen.
I added smaller images for resolutions below 989px.
The issue i’m facing is, that, when i shrink the browser width, some text goes out of the border.
Is there a workaround, so that the images should be staying allways in the same proportions and everything shrinks with same proportions, when the browser window gets reduced in width?
I also saw, that the last image has too much space above (only that one. i checked if there was some wrong settings, but i can’t find something wrong?
https://img.savvyify.com/images/2024/07/03/space-above-last-image.jpg
kind regards Jak
Hallo Support,
und noch eine Frage/Bitte. Ich möchte gerne die Buttons (Bewegungshelden: Die Website ist: ) und die Spalte bei (SHR Die Website ist: ) mobil gerne 2 spaltig haben, nicht wie jetzt untereinander. Ich habe schaut, das Script aus dem Forum:
funktioniert hier leider nicht. Habe ich da irgendetwas nicht richtig beachtet? Die Werte habe ich schon versucht zu ändern, aber das hat leider nicht geholfen.
Hello Support,
and one more question/request. I would like to have the buttons (Movement heroes: The website is: http://wordpress-202405060859.p120044.webspaceconfig.de/ oder bewegungshelden-werne.de) and the column at (SHR The website is: https://shr-dental.de/referenzen/) mobile in 2 columns, not one below the other like now. I have looked at the script from the forum:
@media only screen and (max-width: 767px) {
.responsive #top #wrap_all #two-col .flex_column {
width: 47%;
}
.responsive #top #wrap_all #two-col .flex_column:not(:nth-child(2n+1)) {
margin-left: 6%;
clear: none;
}
}
View post on imgur.com
unfortunately does not work here. Have I not considered something correctly? I have already tried to change the values, but unfortunately that didn’t help.
Thank you very much, also for the always great support.
matthias
Hi,
Sure, no problem. Please see private.
I see the backgrounds on both phone emulation in desktop browsers, and using an actual device. Did you try using a private or incognito browser window?
Best regards,
Rikard
Hi,
Thanks for the update. Please let us know if you should need any further help on the topic.
Best regards,
Rikard
Hey Mike,
the numbers at the top are just deep links to slide 1, 2, 3.
No, I am just wondering that I cannot find a setting to disable the right arrow, when I am on the last slide. I don’t want the user to go from slide 3 to slide 1 by clicking the right arrow. It is an e-learning tool and it makes no sense here.
BTW we are talking about the Layerslider which is integrated in Enfold. Maybe I should ask here: https://layerslider.com/help/
Best regards, Agim
Hi Guenni,
i will do that now. Sould i keep or delete:
/**** Feld Definitionen ********/
#top .avia_textblock.img-with-caption-right .wp-caption .wp-caption-text { grid-area: feld1 }
/*** depends on if there is a link on the image or not ****/
#top .avia_textblock.img-with-caption-right .wp-caption > *:first-child { grid-area: feld2 }
#top .avia_textblock.img-with-caption-right .wp-caption {
border: 1px solid #cccccc;
width: 100% !important;
margin: 0;
display: grid;
grid-auto-rows: auto;
grid-template-columns: 1fr 1fr;
grid-template-areas: "feld2 feld1";
align-items: flex-end;
}
#top .avia_textblock.img-with-caption-right .wp-caption img {
padding: 0 !important;
}
#top .avia_textblock.img-with-caption-right .wp-caption .wp-caption-text {
display: block ;
color: #222222;
font-style: normal;
font-size: 18px;
font-family: inherit;
width: 100%;
padding: 0 1em;
text-align: left;
}
.avia_textblock.img-with-caption-right .wp-caption .wp-caption-text p {
margin: 0 !important;
}
/*** Abstang über dem Rahmen ******/
#top .avia_textblock.img-with-caption-right .wp-caption img {
margin-top: 70px
}
/**** for responsive case maybe:*****/
@media only screen and (min-width: 990px) and (max-width: 1051px) {
#top .avia_textblock.img-with-caption-right .wp-caption {
grid-template-columns: 1fr;
grid-template-areas: "feld2" "feld1" !important;
}
}
for css or just add your new css?
kind regards
Jak
-
This reply was modified 1 year, 8 months ago by
Jak73.
if you see this page – that has your initial setting with text-blocks in columns (equal height ) – images floating left and text directly behind it.
But you see on last column row – that with equal height option the space to top is much bigger than on the other images besides other landscape images.
https://webers-testseite.de/jak73/
Password: is the last name of that logo ( capitalize )
This reply has been marked as private.
Hi,
Thank you for the update.
We temporarily disabled the cache plugin, then modified the script in the functions.php file to make sure that the position of the masonry items adjusts correctly when the tabs are clicked. Please make sure to hard refresh the page before checking.
This is the updated code:
function ava_custom_script()
{ ?>
<script>
(function ($)
{
$(document).ready(function ()
{
$('.tab').on('click', function (event)
{
event.stopImmediatePropagation();
setTimeout(function ()
{
console.log('resize');
$('.av-masonry').avia_masonry('applyMasonry');
$(window).trigger("debouncedresize");
}, 500);
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script', 9999);
Best regards,
Ismael
there are new filters: avf_dynamic_css_additional_vars and avf_dynamic_css_after_vars
but you can redefine those var color definitions in quick css too.
but that means all elements that use these enfold default values ( set in enfold options – general styling) are replaced.
All manually set colors inside alb elements stay as they are.
f.e. for your ID 777:
.html_entry_id_777,
#top.page-id-777 {
--enfold-header-color-bg: #eee;
--enfold-main-color-bg: #eee;
--enfold-footer-color-bg: #eee;
--enfold-alternate-color-bg2: #eee;
--enfold-header-color-bg2: #eee;
--enfold-socket-color-bg: #eee;
--enfold-socket-color-border: #eee;
}
you can now add all page id’s comma separated in that replacement.
or like mentioned above ( Günter provided me with a working filter code ) via child-theme functions.php
(after that it is neccessary to refresh all cachings):
function my_avf_dynamic_css_after_vars( $output = '' )
{
$output .= "\n";
/*** Override a defined var for a specific page id*/
$output .= "html.html_entry_id_777, html.html_entry_id_12345 {\n";
$output .= "--enfold-header-color-bg: #aaa;\n";
$output .= "--enfold-header-color-bg2: #aaa;\n";
$output .= "--enfold-main-color-bg: #aaa;\n";
$output .= "--enfold-footer-color-bg: #aaa;\n";
$output .= "--enfold-alternate-color-bg: #aaa;\n";
$output .= "--enfold-alternate-color-bg2: #aaa;\n";
$output .= "--enfold-socket-color-bg: #aaa;\n";
$output .= "--enfold-socket-color-border: #aaa;\n";
$output .= "}\n";
return $output;
}
add_filter( 'avf_dynamic_css_after_vars', 'my_avf_dynamic_css_after_vars', 10, 1 );
maybe that is the better way – because it is early in the page generation done – then replacement via css redefinition.
btw: it is possible too – to have even mediaqueries here on the filter .
Hi,
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
Ismael
Hey Micheal,
Thank you for the inquiry.
Did you install a lazy load plugin? This might be related to your previous inquiry, which we replied to. Please check our suggestion in the thread below:
// https://kriesi.at/support/topic/iframes-not-working/
Best regards,
Ismael
Hello, the Lightbox feature does not seem to be working. When I click on an image the window goes white with the image at the top of the window.
I am using the masonry gallery. In the advanced settings of the gallery under Link Settings I have Lightbox linking active.
Does the Lightbox feature require a plugin now?
Thanks!
Enfold: 6.0
WP: 6.5.5
Mac OS 14.5
Slider at Header truncates text on a cell phone.
Example pages:
https://www.stonecrafters.rocks/
https://www.stonecrafters.rocks/services/
https://www.stonecrafters.rocks/contact/
Side note the icons to the right of each text link on the nav bar on Desktop/Laptop no longer appear as stars but rather white circles overlaying the text. (Chrome) and do not appear at all on Firefox (desktop laptop) since recent updates.
PS: have a look where this rule is:
@media only screen and (min-width: 990px) and (max-width: 1051px) {
#top .avia_textblock.img-with-caption-right .wp-caption {
grid-template-columns: 1fr;
grid-template-areas:
"feld2 "
"feld1 "
undefined!importantundefined;
}
}
remove it please. then we can have a look how to style the responsive cases in between 768 and 989
and replace the script with that from: https://kriesi.at/support/topic/remove-bottom-space-from-colum-and-place-text-right-to-image-how-to-reduce-spa/page/2/#post-1461099
you could go and set that one rule for non responsive case :
(grid-template-columns: 35% 65%;)
#top .avia_textblock.img-with-caption-right .wp-caption {
border: 1px solid #cccccc;
width: 100% !important;
margin: 0;
display: grid;
grid-auto-rows: auto;
grid-template-columns: 35% 65%;
grid-template-areas:
"feld2 feld1";
align-items: flex-end;
overflow: hidden;
}
But you had to manually insert softhyphens to some of your titles.
By the way: Self Contained and on the one image Selfcontained ?
It is difficult to fulfill all your requirements because the preconditions are of course not identical. Different image formats and aspect ratios paired with titles of different lengths.