it is much easier to select such elements if they were separated only in one surrounding container.
Means if they were alone f.e. in one color-section. – next we do not need on grid-layout or on flex-layout the need to set same height option – we can do that on different ways.
It is alway a good practice to have for special solutions a unique selector – means f.e. a unique ID or class on that surrounding container.
so now let all as it is and put this to your child-theme quick css:
#top.page-id-5864 #av_section_2 .entry-content-wrapper .flex_column_table .av-flex-placeholder {
display: none !important
}
#top.page-id-5864 #av_section_2 .entry-content-wrapper .flex_column_table {
display: grid !important;
grid-auto-flow: row;
grid-auto-rows: 1fr;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 20px;
}
#top.page-id-5864 #av_section_2 .entry-content-wrapper .flex_column_table .flex_column {
width: unset !important;
margin: 0 !important
}
@media only screen and (min-width:560px) and (max-width: 989px){
#top.page-id-5864 #av_section_2 .entry-content-wrapper .flex_column_table {
display: grid !important;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 20px;
}
#top.page-id-5864 #av_section_2 .entry-content-wrapper .flex_column_table > .flex_column:nth-of-type(n+6) {
left: calc(50% + 10px) /*** just if you like to center last 2 items *****/
}
}
@media only screen and (min-width:320px) and (max-width: 559px){
#top.page-id-5864 #av_section_2 .entry-content-wrapper .flex_column_table {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
#top.page-id-5864 #av_section_2 .entry-content-wrapper .flex_column_table .flex_column:last-of-type {
left: calc(50% + 5px) /*** just if you like to center last item *****/
}
#top.page-id-5864 #av_section_2 .entry-content-wrapper .flex_column_table .flex_column p {
font-size: 17px;
line-height: 24px
}
}
@media only screen and (max-width: 319px){
#top.page-id-5864 #av_section_2 .entry-content-wrapper .flex_column_table {
display: grid !important;
grid-template-columns: 1fr;
gap: 10px;
}
}
5 to 3/2 to 2/2/1 screen sizes lower than 320px will end in 1 column layout.
just shrink your window size to see what happens on responsive case.
so – zunächst – bitte nicht bei den Enfold Optionen unter “Main Menü” die Option : “Append Search Icon To Main Menu” auswählen. Das wäre dann nämlich die Lupe.
Wie oben beschrieben das in die child-theme functions.php:
add_shortcode('avia_search', 'get_search_form');
function avf_add_search( $items, $args ){
if ($args->theme_location == 'avia'){
$search = '<li id="menu-item-search" class="menu-item menu-search menu-item-top-level">';
$search .= do_shortcode('[avia_search]');
$search .= '</li>';
$items = $items . $search;
}
return $items;
}
add_filter( 'wp_nav_menu_items', 'avf_add_search', 10, 2 );
und das hier in das quick css:
.av-main-nav-wrap > ul:first-of-type {
display: inline-flex !important;
height: 100%;
}
#menu-item-search {
line-height: 30px;
position: relative;
}
#menu-item-search #searchform {
position: relative;
top: 50%;
transform: translateY(-50%);
height: 40px;
line-height: 40px;
}
#top #searchform > div:first-of-type {
position: relative;
max-width: 200px;
opacity: 1 !important;
display: block !important;
}
#menu-item-search #searchform #s {
padding: 10px 40px 10px 5px;
font-size: initial;
background-color: rgba(255,255,255,0.85); /*** if you like to have transparency ***/
}
#top #searchform .ajax_search_response {
background-color: rgba(255,255,255,0.85);
position: absolute;
top: 45px;
padding: 10px 0;
width: 100%;
}
hier kannst du sogar alle Home Varianten durchgehen – passt immer ( unter Home ist das Dropdown )
4 entspricht dann deiner Header Setzung.
https://basis.webers-testseite.de/home4/
OK, that works. Thanx
Can you explain why my code didnt work?
.page-id-32278 .av-caption-style-overlay .av-masonry-entry .av-masonry-entry-title {
font-size: 3em !important;}
eva
There are massive issues with your theme – probably update related.
Here what`s going on – explained on one single example – but there are more:
In page XY there should be a CSS class: <em>headerinoverlay</em>
The class is <strong>still in the database</strong>, in the table <strong>postmeta</strong>
[av_image src='https://......./wp-content/uploads/portrait.jpg' attachment='30256' attachment_size='full' copyright='' caption='yes' styling='' align='center' font_size='14' overlay_opacity='0.2'
overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in' hover='av-hover-grow' appearance='' link='lightbox' target='' title_attr='' alt_attr='' lazy_loading='enabled' id='' custom_class='' template_class=''
av_element_hidden_in_editor='0' av_uid='av-6j99wqx' sc_version='1.0' admin_preview_bg='']
<span class="headerinoverlay">TEXT
[/av_image]
The class <strong>is NOT in the actual HTML</strong> sourcecode.
<div class='avia-image-container av-6j99wqx-4360db518504a459e880005aec5fa2b1 av-styling- av-hover-grow avia_animated_image av-animated-when-visible-95 fade-in avia-align-center avia-builder-el-3 avia-builder-el-no-sibling noHover av-overlay-on-hover' itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject" ><div class="avia-image-container-inner"><div class="avia-image-overlay-wrap"><a href="https://www………./wp-content/uploads/portrait.jpg" data-srcset="https://www………./wp-content/uploads/portrait.jpg 800w, https://www……./wp-content/uploads/portrait-80x73.jpg 80w, https://www......../wp-content/uploads/portrait-768x697.jpg 768w, https://www......../wp-content/uploads/portrait-705x640.jpg 705w" data-sizes="(max-width: 800px) 100vw, 800px" class='avia_image' ><div class="av-image-caption-overlay"><div class="av-caption-image-overlay-bg"></div><div class="av-image-caption-overlay-position"><div class="av-image-caption-overlay-center"><p>TEXT</p>
</div></div></div><img loading="lazy" class='wp-image-30256 avia-img-lazy-loading-30256 avia_image ' src="https://www......../wp-content/uploads/portrait.jpg" alt='Portrait' title='Portraitfoto' height="726" width="800" itemprop="thumbnailUrl" srcset="https://www......../wp-content/uploads/portrait.jpg 800w, https://www......../wp-content/uploads/portrait-80x73.jpg 80w, https://www......../wp-content/uploads/portrait-768x697.jpg 768w, https://www......../wp-content/uploads/portrait-705x640.jpg 705w" sizes="(max-width: 800px) 100vw, 800px" /></a></div></div></div></div><div class='flex_column av-6149og9-1350048edcab4a29bac43fd434ba5c8f av_two_third avia-builder-el-4 el_after_av_one_third avia-builder-el-last flex_column_div av-zero-column-padding ' ><section class='av_textblock_section av-kr20wrz8-63e74a5f33bc7afd1e2b9d372feba404' itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost" >
The class<strong> is NOT in the ALB</strong>
[av_image src='https://......./wp-content/uploads/portrait.jpg' attachment='30256' attachment_size='full' copyright='' caption='yes' styling='' align='center' font_size='' overlay_opacity='0.2'
overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in' hover='av-hover-grow' appearance='on-hover' link='lightbox' target='' title_attr='' alt_attr='' lazy_loading='enabled' id='' custom_class='' template_class=''
av_element_hidden_in_editor='0' av_uid='av-6j99wqx' sc_version='1.0' admin_preview_bg='']
TEXT[/av_image]
So there is no way to edit it or remove it cause i cant find.
When you compare the code from the database with the code from the ALB you will realize that there are also other things wich are different.
This (gone CSS) happened to a lot of CSS and this is a very serious problem.
Please fix it or tell me how i get my CSS back from the DB into the ALB!
Eva
I can’t set the H1 in responsive to 50px in the text block. Enfold only offers me a maximum of 40px. i need to be able to change the font for responsive divices. Besides, you can’t set letter spacing in advanced styling for H1-H6, but you can in “button styling”.? I work with versal latters and have to use letter spacing.
Hi,
Thanks for the feedback, this is the working css:
.page-id-32278 .av-masonry-entry .av-masonry-entry-title {
font-size: 3em !important;
}
I created a test page using your shortcode above and it is working, feel free to adjust the font size to suit.
Best regards,
Mike
It was a typo – of course i meant masonry element.
The fact that i posted the CSS is a strong hint for it.
Read again please!
I need to change the font size only for the page with the .page-id-32278.
All other pages should show the masonry element like normal/standard/default
kind regards
Eva
Hey rixi,
Please try the following in Quick CSS under Enfold->General Styling:
span.av-seperator-icon {
font-size: 30px;
}
Best regards,
Rikard
Hey Martin,
Please try this in Quick CSS:
#top #header .mega_menu_title a {
font-size: 30px;
}
Best regards,
Rikard
thx – but this does not fix the issue – same appearance. also if I take grey instead of gray
PS: font size L2 i was able to fixe, so only the grey background for L2 items is still missing.
thx & cheers Tilman
-
This reply was modified 3 years, 5 months ago by
oestersund.
-
This reply was modified 3 years, 5 months ago by
oestersund.
no – i know now that i misunderstood your question – you do not want a two line menu – you want to have the menu-items labels in two lines.
Just a moment: …
Ismaels Code will work – if you got no shrinking header – but there are solutions for shrinking header too.
Just one moment – i think i got a more simple method now ! …
put in that Navigation Label of the menu-item:
( you only need those classes on the spans if you like to colorise them separatly or if they should have different font-styles )
<span class="firstline">Leistungen</span><span class="secondline">Portfolio</span>
give to the menu-item itself a class: twoliners
click to enlarge the image:

put this to your quick css
#avia-menu .twoliners.menu-item-top-level > a > .avia-menu-text {
display: grid;
height: 100%;
grid-template-columns: 1fr;
padding: 0px 10px !important;
}
#avia-menu .twoliners.menu-item-top-level > a > .avia-menu-text > span {
justify-self: center;
grid-column: 1 / 2;
align-self: center;
}
#top #wrap_all #avia-menu .twoliners.menu-item-top-level.av-menu-button > a > .avia-menu-text {
gap: 3px 0;
}
#avia-menu .twoliners.menu-item-top-level > a > .avia-menu-text > span {
line-height: 0px;
text-align: center;
}
#avia-menu .twoliners.menu-item-top-level > a > .avia-menu-text > .secondline {
color: #999;
font-size: 1.1rem;
font-style: italic;
}
#top #wrap_all #avia-menu .twoliners.menu-item-top-level.av-menu-button-colored > a > .avia-menu-text > .secondline {
color: #ddd;
}
Maybe you have to adjust some padding or gap value for your header height.
See here the test page: https://consulting.webers-testseite.de/
PS : you had to style the hamburger yourself f.e.
#av-burger-menu-ul * {
border: none !important;
}
#av-burger-menu-ul > li {
margin: 10px 0 !important;
}
#top #wrap_all #av-burger-menu-ul .twoliners.av-menu-button > a {
padding-left: 10px ;
}
#av-burger-menu-ul .twoliners > a > .avia-menu-text {
display:grid;
height:100%;
grid-template-columns:1fr;
gap: 10px
}
#av-burger-menu-ul .twoliners > a > .avia-menu-text > span {
justify-self:left;
grid-column:1 / 2;
align-self:center;
}
#av-burger-menu-ul .twoliners > a > .avia-menu-text > span.secondline{
padding-left: 10px;
color: #ddd;
font-size: 1.1rem;
font-style: italic;
}
/**** etc. ****/
All of my headline rotator font sizes appear the same size, despite being set to 40+, 80+ and 150.
Page below shows examples of 3 headline rotator’s appearing the same font sizes — yet are all set drastically different.
yes – you can do that – or leave all as it is with buttons – and just remove the button styling on that:
body #people .avia-button {
color: #000 !important;
background-color: transparent;
border-radius: none;
padding: 0;
font-size: 16px;
border-bottom: none;
text-align: left;
background-color: transparent;
}
body #people .avia-button:before {
content:"+ "
}
body #people .avia-button:active {
outline: none;
border: none;
}
Hi,
how can I change font color and font size? Especially the titles?
Thanks in advance and kind regards
Morcy
-
This topic was modified 3 years, 5 months ago by
Morcy.
-
This topic was modified 3 years, 5 months ago by
Morcy.
hm – yes but this was meant for main-menu on left or right position.
but i think there will be now a better solution – just a moment …
put this in your child-theme functions.php:
add_shortcode('avia_search', 'get_search_form');
function avf_add_search( $items, $args ){
if ($args->theme_location == 'avia'){
$search = '<li id="menu-item-search" class="menu-item menu-search menu-item-top-level">';
$search .= do_shortcode('[avia_search]');
$search .= '</li>';
$items = $items . $search;
}
return $items;
}
add_filter( 'wp_nav_menu_items', 'avf_add_search', 10, 2 );
and this to your child quick css:
.av-main-nav-wrap > ul:first-of-type {
display: inline-flex !important;
height: 100%;
}
#menu-item-search {
line-height: 30px;
position: relative;
}
#menu-item-search #searchform {
position: relative;
top: 50%;
transform: translateY(-50%);
height: 40px;
line-height: 40px;
}
#top #searchform > div:first-of-type {
position: relative;
max-width: 200px;
opacity: 1 !important;
display: block !important;
}
#menu-item-search #searchform #s {
padding: 10px 40px 10px 5px;
font-size: initial;
background-color: rgba(255,255,255,0.85); /*** if you like to have transparency ***/
}
#top #searchform .ajax_search_response {
background-color: rgba(255,255,255,0.85);
position: absolute;
top: 45px;
padding: 10px 0;
width: 100%;
}
/******* if you got transparency option ******/
#header.header_color.av_header_transparency #avia-menu #menu-item-search #searchform #s {
background-color: rgba(255,255,255,0.35);
color: #FFF !important;
}
#header.header_color.av_header_transparency #avia-menu ::placeholder {
color: #FFF !important;
}
/*** end of transparency header setting ***/
Hi,
Please add the following CSS codes in Enfold > General Styling > Quick CSS:
1. (Required) I woiuld like to be #AEFB47 – there are lots of these.
#top .gfield_required {
color: #AEFB47;
}
2. Section titles (APPLICANT INFORMATION, SPOUSE/PARTNER INFORMATION, BUSINESS/MANAGEMENT GOALS & OBJECTIVES, ETC) I woiuld like to be #AEFB4 – is there also a way to make this text larger?
#top .gsection_title {
color: #AEFB47;
font-size: 32px;
}
Just adjust the font size as you see fit (default size is 20px).
3. The submit button text i need black
#top .gform_wrapper .gform_button {
color: black;
}
4. How do I remove the form title? The Title is RFC at the top
#top .gform_heading .gform_title {
display: none;
}
Hope this helps :)
Best regards,
Nikko
Hey evas49,
Thanks for the ALB shortcode, but it is for a masonry element (not gallery), and your css works for it:
.av-caption-style-overlay .av-masonry-entry .av-masonry-entry-title {
font-size: 3em !important;}
naturally, I had to remove the page ID.
But the title of this thread is for a masonry gallery, so for a masonry gallery you would use this css:
.av-masonry-entry .av-masonry-entry-title {
font-size: 3em !important;}
I have tested it and it works for both the masonry gallery, and the masonry (not gallery).
Best regards,
Mike
Hi
i need to change the font size of “av-masonry-entry-title” in all single pages which contain a masonry gallery
I gave a class “kursmasonry” and made it like this:
#top .kursmasonry .av-caption-style-overlay .av-masonry-entry .av-masonry-entry-title {
font-size: 1.7em !important;
color: #f7f7f7 !important;}
IT WORKS
I have a page (overwiew) which has a masonry element (not gallery!).
Here i pull all pages – this is the overwiev of all classes and courses i give.
I need to have another font size here but it does not work
I work since hours but i cant make it work.
I even cant get it with the page id:
.page-id-32278 .av-caption-style-overlay .av-masonry-entry .av-masonry-entry-title {
font-size: 3em !important;}
This is the code of the page:
[av_masonry_entries link='kurskategorie,3792,3790,3787,3788,3791,3789' wc_prod_visible='' wc_prod_hidden='hide' wc_prod_featured='' prod_order_by='' prod_order='' date_filter='' date_filter_start='' date_filter_end='' date_filter_format='yy/mm/dd' period_filter_unit_1='1' period_filter_unit_2='year' sort='yes' query_orderby='date' query_order='DESC' caption_elements='title excerpt' caption_styling='overlay' caption_display='always' size='fixed masonry' orientation='' image_size='masonry' gap='large' columns='2' av-medium-columns='' av-small-columns='' av-mini-columns='' items='12' paginate='load_more' color='' custom_bg='' overlay_fx='bluronhover' animation='' img_scrset='' lazy_loading='enabled' id='workshop' custom_class='' template_class='' av_uid='av-l306034u' sc_version='1.0']
regards
E.A
No – i cant give you acess to my localhost.
Please @rikard – don`t support here.
Thanx
Hi Alexander,
Thanks for contacting us!
Please add following code to Quick CSS field in Enfold theme options > General Styling tab
#sub_menu1 .avia-menu-text {
color: white;
font-size: 20px;
background-color: red;
padding: 10px;
border-radius: 5px;
}
Regards,
Yigit
Hi,
We cannot reproduce #4. For the iconbox title, try to adjust the style of the H4 heading tag in the Enfold > Advanced Styling panel or use this css code.
h4 {
font-size: 30px;
line-height: 1.1em;
margin-bottom: 4px;
}
To adjust the font size on mobile view or on smaller screens, add this css media query.
@media only screen and (max-width: 767px) {
/* Add your Mobile Styles here */
h4 {
font-size: 20px;
line-height: 1.1em;
margin-bottom: 4px;
}
}
Please make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the changes.
Best regards,
Ismael
Hi Samuel,
Please try adding this CSS code as well:
#top .formkit-header h2 {
line-height: 1.3;
}
#top .formkit-field fieldset {
margin-bottom: 0;
}
#top .formkit-field input.formkit-input {
font-size: 15px;
margin-bottom: 0;
padding: 12px;
}
Best regards,
Nikko
This reply has been marked as private.
Hi,
I want to change the h2 font size through the typography settings.
However, the changes have no effect.
What can i do?
Thanks!
on downloading your woff2 and uploading it to : https://wakamaifondue.com/
i can see that all variable properties are lost.
And that the file-size is less than the correct variable font – so your gtmetrix result is very good: https://gtmetrix.com/reports/www.greenconnections.nl/LddWcoje/
how did you get the woff2 from that open sans font?
yes it is a bit more complex – but you will be rewarded with more styling options.
i do always transform the downloaded ttf variable fonts to woff2 fonts – because these files do have the best compression level of all font mime types.
All browsers that support variable font files do support woff2.
if you open the mentioned page : https://wakamaifondue.com/ and drag your ttf ( or in my case the woff2 to that circle with the rotating letters. you can see on variable section for open sans font:

here you can see the layout options on that variable font – so my more detailled @import rule will be:
( btw i do place the fonts in the same directory as the enfold custom font manager fonts and that css rule to style.css of my child theme )
on my style.css i have:
@font-face {
src: url('/wp-content/uploads/avia_fonts/type_fonts/opensans-variable.woff2') format('woff2');
font-family:'Open Sans Variable';
font-weight: 300 800;
font-stretch: 75 100;
font-style: normal;
}
on my quick css
f.e.:
#top #wrap_all .av-special-heading-tag {
font-family:'open-sans',Helvetica,Arial,sans-serif
font-weight: 400;
}
@supports (font-variation-settings: normal) {
#top #wrap_all .av-special-heading-tag {
font-family: 'Open Sans Variable', sans-serif;
font-stretch: 100%;
font-weight: 350;
}
}
this is because : if the browser supports variable fonts – that font will be taken – if not the normal open-sans (uploaded via custom font manager) is in place as fallback.
Very nice tool on firefox ( i got the developer edition installed – but maybe the normal one has it too ) on developer tools is the fontstyle tab:
enlarge the image on click

you see that the font is working under its variable layout options.
you can adjust the existing sliders until you like the layout – and then note these settings and transfer them to css.
i do not see that options on your page –
so that was my assumption, that a variable font loses its properties via the Custom Font Manager.
Now do you realy need those layout options – or maybe it is enough to have a normal and a bold variant?
see file-size comparison:

you can compare those file-sizes now – think of performance of your page – perhaps it is enough to have two fixed font-weights only for selection.
and on gtmetrix the font-loading times:

Hey larademartino,
Thank you for the inquiry.
Looks like the font of the text in the list is set to 13px by default. To adjust it, please add this css code.
#top ul li {
font-size: 10px;
}
You may need to toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css.
Best regards,
Ismael
Hey team,
In a text box, my bullet points font seems a lot larger than the rest (size 10).
Can you please look into this for me?
Thank you so much
Hi,
Thank you for your question, based on the file name:
opensans-variablefont_wdthwght-webfont
it is a variable font with weight, so it should include all sizes and weights, you will only need to set the size and weight in your element, or advanced style setting, or in your css, depending on how you are assigning this.
Best regards,
Mike
just put his code name it f.e. prg_patterns.php – therefore you had to start that codesnippet of him by a leading <?php
– and upload it to your child-theme/shortcodes folder.
if you haven’t allready this littel snippet in your child-theme functions.php – insert it :
function avia_include_shortcode_template($paths){
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.'/shortcodes/');
return $paths;
}
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
see doku to have own alb elements
see example in the footer area with links to impressum and datenschutz
https://enfold.webers-webdesign.de/impressum/#footer
i just edited his code a bit to have on form element classes to style the form output better:
/* form output */
ob_start();
?>
<?php if( $atts['newtab'] == 'true' ): ?>
<form class="prg newtab" method="POST" target="_blank">
<?php else: ?>
<form class="prg" method="POST">
<?php endif; ?>
<button class="noLink" type="submit" name="prgpattern" value="<?php echo $redirect_slug; ?>"><?php echo $atts['title']; ?></button>
</form>
<?php
return ob_get_clean();
then i can set for those forms:
#top form.prg {
display: inline-block;
margin-bottom: 0;
}
#top form.prg .noLink {
border: none;
font-size: inherit;
color: inherit;
background-color: transparent;
}
#top form.prg .noLink:hover {
color: gold;
cursor: pointer;
transition: all 0.5s ease
}
