Forum Replies Created
-
AuthorPosts
-
these are custom classes to set by yourself: is-h1; is-h2 etc. because you can remember that better than other classnames.
so that snippet:function replace_tags_with_tags(){ ?> <script> (function($) { function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); }); } // f.e.: custom-class expresses the h-tag you like to get replaceElementTag('.avia-button-wrap.is-h1 .avia-button .avia_iconbox_title', '<h1></h1>'); replaceElementTag('.avia-button-wrap.is-h2 .avia-button .avia_iconbox_title', '<h2></h2>'); replaceElementTag('.avia-button-wrap.is-h3 .avia-button .avia_iconbox_title', '<h3></h3>'); replaceElementTag('.avia-button-wrap.is-h4 .avia-button .avia_iconbox_title', '<h4></h4>'); }(jQuery)); </script> <?php } add_action('wp_footer', 'replace_tags_with_tags');
will only work if you think of to set that custom class to that button
________
the script for the button-row to have unique ids on the buttons inside a button row is just to select easily those buttons.
Otherwise you had to work with something like this: .avia-button:nth-of-type(2) etc.so if you got an ID on a button-row abc – the first button of that row will have the ID: abc-button1 etc.
then you can add a new line to the script above:replaceElementTag('#abc-button1 .avia_iconbox_title', '<h1></h1>'); replaceElementTag('#abc-button2 .avia_iconbox_title', '<h2></h2>'); replaceElementTag('#abc-button3 .avia_iconbox_title', '<h3></h3>');
I don’t think it makes sense for buttons and certainly not for a button row; but if you want it, I’ll show you how to force it ;)
see again a button row with all the codes here: https://webers-testseite.de/buttonrow/
nice thing to have – because the grid-row is a mighty thing to nest columns – see example page again.
depends on what kind of hamburger menu you have choosen – for example a classic one:
.html_av-overlay-side-classic #top .av-burger-overlay li li .avia-bullet { content: " "; opacity: 0.5; /*** default is 0.3 ***/ height: 0 } .html_av-overlay-side-classic #top .av-burger-overlay li li .avia-bullet:before { content: "\2907"; width: 20px; height: 20px; position: absolute; top: -12px; left: 0; font-size: 20px }
looks this way ( click to enlarge ) :
if you like to differ between the menu levels – we had to be more precise in the selector.
f.e.:
.html_av-overlay-side-classic #top .av-burger-overlay li li .avia-bullet { content: " "; opacity: 0.5; /*** default is 0.3 ***/ height: 0 } .html_av-overlay-side-classic #top .av-burger-overlay .sub-menu .avia-menu-text { padding-left: 5px ; /*** a little more distance to that sign ***/ } .html_av-overlay-side-classic #top .av-burger-overlay .sub-menu .avia-bullet:before { content: "\2907"; width: 20px; height: 20px; position: absolute; top: -12px; left: 0; font-size: 20px; color: red; } .html_av-overlay-side-classic #top .av-burger-overlay .sub-menu .sub-menu .avia-bullet:before { content: "\21A6"; font-size: 20px; color: green }
Btw: sometimes the “avia-bullet” is set to display: none – you then had to get rid of that setting first
You can find here the codes for the content insertion :
use the hex-code and replace the leading &#x with a backslash \
html-entities-
This reply was modified 2 years, 5 months ago by
Guenni007.
you can do that with grid-rows one after the other.
The Grid-row is on default a full-width element – but with a bit of script you can force it to be not:
give a custom class to your grid-row – f.e.: grid-notfull
this comes to child-theme functions.php:function grid_layout_notfull(){ $responsive_size = avia_get_option('responsive_size'); ?> <script> (function($){ $('.av-layout-grid-container.grid-notfull' ).each(function() { var notfullID = $(this).attr('id'); $(this).hasClass('main_color') ? $(this).wrap('<div class="main_color notfullsize '+notfullID+'"></div>') : ''; $(this).hasClass('alternate_color') ? $(this).wrap( '<div class="alternate_color notfullsize '+notfullID+'"></div>') : ''; }); $('.notfullsize').css({"clear": "both", "width": "100%" , "float": "left" , "position": "static" , "min-height": "100px" }); $('.grid-notfull').css({"max-width": "<?php echo $responsive_size; ?>" , "margin": "0 auto" , "padding": "0 50px"}); })(jQuery); </script> <?php } add_action('wp_footer', 'grid_layout_notfull');
you can see what the snippet does: it wraps the grid-row element to a div container with the settings for a “color-section” ,
and the grid-row element itself gets the porperties of a color-section container. ( max-width, padding and min-height )
the max-width is taken from the option setting of enfold dialog.see here a layout with 3 grid-rows : https://webers-testseite.de/grid-rows/
the wrap-container got the class from the grid-row ID – so you can select better each grid-row.
Means: if the grid-row got ID: av-layout-grid-1 – the div container wrapping that grid-row will have the class: av-layout-grid-1negative margin works – padding I do not believe.
Unfortunately, I can not see your private content as a participant, otherwise my comment would certainly be more constructive.you see it is in that one line starting with:
$('.av-burger-overlay')
that part:
<video autoplay="" loop="" class="video_bg" style="width: 1920px; height: 1080px;"><source src="/wp-content/uploads/Blurred-Crowd-of-People-Walking_SD_DOWNLOAD.mp4"><img src="/wp-content/uploads/video-preview.jpg" alt="background"></video>
my insertion on that test-page is only with mp4
but if you enter that like this :
<video autoplay="" loop="" class="video_style" style="width: 2226px; height: 1252px; top: 0px; left: -248px;"> <source src="https://milano.beantown.website/wp-content/uploads/menu.m4v" type="video/mp4"> <source src="https://milano.beantown.website/wp-content/uploads/menu.webm" type="video/webm"> <source src="https://milano.beantown.website/wp-content/uploads/menu.ogv" type="video/ogv"> <img src="https://milano.beantown.website/wp-content/uploads/menu.jpg" alt="background"> </video>
it will not work – the line breaks do hamper the insertion – so i mentioned that it has to be a one-liner
<video autoplay="" loop="" class="video_style" style="width: 2226px; height: 1252px; top: 0px; left: -248px;"><source src="https://milano.beantown.website/wp-content/uploads/menu.m4v" type="video/mp4"><source src="https://milano.beantown.website/wp-content/uploads/menu.webm" type="video/webm"><source src="https://milano.beantown.website/wp-content/uploads/menu.ogv" type="video/ogv"><img src="https://milano.beantown.website/wp-content/uploads/menu.jpg" alt="background"></video>
:
function add_video_to_hamburger_background() { ?> <script type="text/javascript"> (function($){ $('#header').one('click', '.av-main-nav-wrap' , function() { setTimeout( function() { $('.av-burger-overlay').append('<div class="video_burger_bg"><video autoplay="" loop="" class="video_style" style="width: 2226px; height: 1252px; top: 0px; left: -248px;"><source src="https://milano.beantown.website/wp-content/uploads/menu.m4v" type="video/mp4"><source src="https://milano.beantown.website/wp-content/uploads/menu.webm" type="video/webm"><source src="https://milano.beantown.website/wp-content/uploads/menu.ogv" type="video/ogv"><img src="https://milano.beantown.website/wp-content/uploads/menu.jpg" alt="background"></video></div>'); },300); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_video_to_hamburger_background');
Perhaps we should rule out the other sources of error before blaming everything on the theme first.
Which WordPress (6.2.2) version is running and which php version is selected at your provider for the corresponding domain?
The WordPress 6.2 definitly needs newer php versions to run properly.@jonroot : this is possible if you have disabled this option for security reasons. This can be done via ftp and an entry in the wp-config.php.
Caution : please backup that file first, so that accidental changes don’t wreck the whole thing for you.
have a look to that file and set this to false or delete that entry.define('DISALLOW_FILE_EDIT', true);
Some security Plugins can switch off that Option too. Maybe that is the reason you can’t find it
you see on your example page they are working with self hosted html5 videos. You could insert them on enfold burger overlay via script.
you had to be sure that the html insertion is on one line :
( a line-break inside that append – will break the script )
<video autoplay="" loop="" class="video_style" style="width: 1636px; height: 920px; top: 0px; left: -72.5px;"><source src="https://milano.beantown.website/wp-content/uploads/menu.m4v" type="video/mp4"><source src="https://milano.beantown.website/wp-content/uploads/menu.webm" type="video/webm"><source src="https://milano.beantown.website/wp-content/uploads/menu.ogv" type="video/ogv"><img src="https://milano.beantown.website/wp-content/uploads/menu.jpg" alt="background"></video>
i just did it here: https://enfold.webers-webdesign.de/
only with mp4 video :
function add_video_to_hamburger_background() { ?> <script type="text/javascript"> (function($){ $('#header').one('click', '.av-main-nav-wrap' , function() { setTimeout( function() { $('.av-burger-overlay').append('<div class="video_burger_bg"><video autoplay="" loop="" class="video_bg" style="width: 1920px; height: 1080px;"><source src="/wp-content/uploads/Blurred-Crowd-of-People-Walking_SD_DOWNLOAD.mp4"><img src="/wp-content/uploads/video-preview.jpg" alt="background"></video></div>'); },300); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_video_to_hamburger_background');
But one thing to mention Does it all the time loop. so maybe it is best to enter a play/pause routine f.e. on clicking to a link inside the hamburger or the av-main-nav-wrap burger icon.
#top .video_bg { position: fixed; left: 0; top: 0; right: 0; bottom: 0; min-width: 100%; min-height: 100%; background-color: #000; } #top .av-burger-overlay-bg { opacity: 0.8; }
Yes – it is only on older IOS devices
You have found it already! Havn’t you?
I can see no hover bg color for those list itemsAnd you do not understand how plugins work:
The plugins folder is outside the themes folder – there is no parent plugin nor a child plugin folder – just a pure plugin folder:
Maybe a Mod knows better to help you out of this.
April 14, 2023 at 11:15 pm in reply to: White Screen of Death – when activating Enfold theme #1404495i’m too at allInkl and have on all of my projects PHP Version 8.1.16 without any problem.
Sometimes on important installations i do have these entries in my wp-config.php ( it is a different way to set up these values ):define( 'WP_MAX_MEMORY_LIMIT', '256M' ); define( 'WP_MEMORY_LIMIT', '128M' );
Dashboard – Appearance – Theme File editor : on the right side you had to click the file you like to edit.
But: be careful – do not erase the first line of that file (<?php
)there are no child-theme plugins – there are only plugins.
f.e. – if i have contact form 7 plugin installed – it will be there on enfold parent theme – and it will be there on the child. No extra loading needed.
Plugins are loaded by wordpress – not by there themes. You can easily check this – because changing the theme to 2020, for example, does not change the activations of the plugins – all those that were active before remain so.
There may be plugins that are written specifically for Enfold (I can’t think of any right now) – but even there the above applies.
What plugin do you like to work with? What changings do you have made?_______
Maybe you just don’t see the change because you have caching tools running or Enfold’s file merging is active. In this case you should refresh the files: Enfold – Performance – “Delete Old CSS And JS Files?
and this edited file was created outside of wordpress? Then look where the original is located – and upload it via ftp.
I think you have a little misunderstanding about how a child theme works. A child theme uses all the parent theme elements as long as no files of its own are explicitly added. Plugins are no exception, they are added to WordPress and made available to the themes. The child is then allowed to be the one who benefits from the whole thing.
no difference to editing if you only have your parent theme activated.
just choose on top right your desired plugin you had to edit. “Select plugin to edit:”have a look to the docu:
https://kriesi.at/documentation/enfold/social-share-buttons/#how-to-add-custom-social-icons-to-enfold-optionsi do often prefer the option a little bit under the snippet: “Using images or non-Fontello icons” – so you can have multicolored icons
this to child-theme functions.php:
function avia_add_houzz_social_icon($icons) { $icons['Houzz'] = 'houzz'; return $icons; } add_filter('avf_social_icons_options','avia_add_houzz_social_icon', 10, 1);
and f.e. something like this to your quick css:
#top #wrap_all .av-social-link-houzz a:before{ content: ""; width: 20px; height: 20px; display: inline-block; vertical-align: middle; background: url(url-to-your-houzz.png) no-repeat center center; background-size: contain; }
you find the new entry on the end of the drop-down list.
and on blog-layout options you will see too that new social option
by the way : now after an enfold option offers a solution you can kill that post here – or close it
I do have this on an older Ipad 3 with IOS 12.5.7
i try to simulate this on desktop Safari by using Developer Tools and an own user-agent-string.
guess that is the only way to inspect what might cause the issue.maybe you style it this way: one color-section to 100% height. Page Template as : Template Blank – no header no footer
see: https://enfold.webers-webdesign.de/website-switch/
you can have that page as landing page – but for your menu set the home button as you like and change logo link to Website A link
add_filter('avf_logo_link','av_change_logo_link'); function av_change_logo_link($link){ $link = "https://website-A-Domain-link"; return $link; }
Just look at the slider images :
totatl Page-size: 3,5Mb
the four images on top list – got 2mb …
They do not take care of this for the demo – even a nice sharpness – and 1500px width should not have more than 250kb
But keep in mind that by default Enfold recalculates the images in different sizes when uploading; these images are then saved without compression, which can lead to these images having more file size than the original uploaded image.
Therefore I mostly use this snippet in the child-theme functions.php:add_filter("avf_jpeg_quality", "avf_set_quality_mod", 9999, 1); add_filter("avf_wp_editor_set_quality", "avf_set_quality_mod", 9999, 1); function avf_set_quality_mod($quality) { $quality = 55; return $quality;}
set to 55% compression level – that amount depends on your average image needs.
a comparison between the original images ( just one from enfold – the other one is with higher compression level in photoshop
https://enfold.webers-webdesign.de/image-comparison/do not use these filters for that – just load your svg logo by enfold options dialog.
All newer Enfold will suport the inline svg logo now. And on transparency the sameSee comment on bottom right “Since 4.8.6.4 … )
These filters can be used to show on specific pages a different logo. But for svg there might be better ways then.
f.e.: to replace a standard jpg/png logo with inline svg on specific pages:
function replace_logo_with_svg() { if(is_page(array( 39718, 39906))){ ?> <script type="text/javascript"> (function($) { function a() { $( ".logo a img" ).remove(); $.get('/wp-content/uploads/logo-rood-2023.svg', function(svg){ $( ".logo a" ).html( svg ); }, 'text'); } a(); })(jQuery); </script> <?php } } add_action('wp_footer', 'replace_logo_with_svg');
see here a different logo – than on the other pages: https://webers-testseite.de/portfolio/
In almost all cases it is sufficient to have these custom scripts in the footer – sometimes it is necessary to set a priority for these inserts. But for all jQuery scripts, they must be loaded after jQuery is already loaded.
( maybe your timing is a bit to fast – i did not test your script – but if 100 does not work try 300)
( PS – this comes to child-theme functions.php )function your_custom_script_insertion() { ?> <script type="text/javascript"> (function($){ $(window).on('load',function(){ setTimeout(function(){ var _hash=window.location.hash; if(_hash){ var targetElem=$(_hash); if(targetElem.length){ targetElem.addClass('highlighted-term'); } } },100); }); })(jQuery); </script> <?php } add_action('wp_footer', 'your_custom_script_insertion');
However, I do not understand the meaning of the script.
because only if you click a link with hash, the hash is also indicated above in the Url. If you click several hash links, then all get this class one by one.are you trying to have a menu floating into two lines? – Or do you only want to have a break in menu label ( see here: https://consulting.webers-testseite.de/ )
the first is possible too – with flex box layout. But that will be difficult to style if you have a shrinking header – and if the first level menu-items got a lot of drop-down sublevel menu-items ( or mega-menu option ) see: https://pureinstall.webers-testseite.de/impressum/
You will run into conflict with area to click – The click areas are too close together
see docu: https://kriesi.at/documentation/enfold/menu/#multiline-menu
( but that will work with menu left and logo right too – just change some flex settings to have it )This is no standard behavior – are you sure that there is no extra snippet in your child-theme.
For example – it is possible to only show search for logged-in users.
Easiest way to test – log out on your PC and look if it is still working for PCunder Performance Setting you find it on the top : “File Compression” – you can set css and js merging.
This setting ensures that a single file ( each ) is created from the many individual css or js files; this is then loaded by Enfold instead of the individual files. But this is a kind of cached information. Therefore, changes to the settings are only visible when you reinitiate the creation of these merged files below.
Hence my request to switch off this setting to find out where the changes were made.
In principle, I would also recommend to turn this on or install caching tools/plugins only after you are finished with the layout of your page.And since case 6 is already prepared in footer.php, this could actually be included in core.
btw. there is a child-theme solution to change it – insert this to your child-theme functions.php:
function my_avf_option_page_data_change_elements( array $avia_elements = array() ){ $slug = "footer"; $id = 'footer_columns'; $index = -1; /** Find index of element to change*/ foreach( $avia_elements as $key => $element ){ if( isset( $element['id'] ) && ( $element['id'] == $id ) && isset( $element['slug'] ) && ( $element['slug'] == $slug ) ){ $index = $key; break; } } /** * If key not found, return unmodified array*/ if( $index < 0 ){ return $avia_elements;} /*** Make your customizations*/ $avia_elements[ $index ]['subtype'] = array ( __('1', 'avia_framework') =>'1', __('2', 'avia_framework') =>'2', __('3', 'avia_framework') =>'3', __('4', 'avia_framework') =>'4', __('5', 'avia_framework') =>'5', __('6', 'avia_framework') =>'6' ); return $avia_elements; } add_filter( 'avf_option_page_data_init', 'my_avf_option_page_data_change_elements', 10, 1 );
if you sitch off your merging we can better inspect your site – but there is a rule inside your css:
#top #header .av-main-nav>li>a { font-size:14px }
and i think that this comes from advanced styling. And this is not your intention ?
how did you load the cormorant garamond font?April 6, 2023 at 9:25 pm in reply to: Need to add a banner just to the homepage with a width of 100% #1403751But your banner scrolls away – or should it stay fixed under the submenu?
see: https://enfold.webers-webdesign.de/guychalk/
( the menu below is only to set in enfold option header )The banner: is just a color section with background-image
to have this responsive determine the aspect ratio of your banner image and give this relative height to the colorsection via quick css in percentage.
f.e. if your image is 16:9 format – set for the color-section height a height of 56.25% ( set 56%) .
-
This reply was modified 2 years, 5 months ago by
-
AuthorPosts