-
AuthorSearch Results
-
June 2, 2023 at 9:54 pm #1409434
In reply to: working solution for different logo on scroll
hm – my coding abilities are not good enought to check in a filter function if a page/post is a transparency page.
i see that line on enfold-functions.php :$transparency = post_password_required() ? false : get_post_meta( $post_id, 'header_transparency', true );but can’t get it to run for all non transparency pages/posts
what i got so far for my example page is:
function an_alternative_logo( $sub ) { if (is_page(2879) ) { $sub .= '<img class="alternative-logo" src="path_to_your_alternative_logo" alt="alternativ Logo" />'; } return $sub; } add_filter( 'avf_logo_subtext', 'an_alternative_logo' ); function replace_alternative_svg_logo_with_inline_code() { if (is_page(2879) ) { ?> <script type="text/javascript"> window.addEventListener("DOMContentLoaded", function () { (function($){ $( ".avia-img-svg-logo-sub img" ).remove(); $.get('path_to_your_alternative_svg_logo', function(svg){ $( ".avia-img-svg-logo-sub" ).html( svg ); }, 'text'); })(jQuery); }); </script> <?php } } add_action('wp_footer', 'replace_alternative_svg_logo_with_inline_code');and for quick css:
#top.page-id-2879 .alternative-logo { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.5s ease } #top.page-id-2879 .header-scrolled .alternative-logo { opacity: 1; } #top.page-id-2879 .header-scrolled .av-contains-svg > svg, #top.page-id-2879 .header-scrolled .av-contains-svg > img { opacity: 0; transition: opacity 0.5s ease } #top.page-id-2879 .subtext.avia-img-svg-logo-sub > svg { position: absolute; top: 0; left: 0; } #top.page-id-2879 :not(.header-scrolled) .subtext.avia-img-svg-logo-sub > svg { opacity: 0; transition: opacity 0.5s ease } #top.page-id-2879 .header-scrolled .subtext.avia-img-svg-logo-sub > svg { opacity: 1; transition: opacity 0.5s ease }maybe it is possible for a mod to change the code for a more global use, in the sense that only pages without transparent logo will have this filter.
June 2, 2023 at 8:02 pm #1409429Topic: update caused critical error for child
in forum Enfoldxtinahill
Participanthi – i recently updated a VERY old (i think version 4.5?) and broken site for a client. it appears that the update went well and I’m not getting an error except when i activate the child theme. below is the error message. is this something that can be fixed? i’d hate to lose the site.
Fatal error: Uncaught Error: Call to undefined function avia_get_option() in /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-content/themes/pinnacle-brand-management/index.php:16 Stack trace: #0 /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-includes/template-loader.php(106): include() #1 /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-blog-header.php(19): require_once(‘/home/customer/…’) #2 /home/customer/www/pinnacle-brandmanagement.com/public_html/index.php(17): require(‘/home/customer/…’) #3 {main} thrown in /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-content/themes/pinnacle-brand-management/index.php on line 16
There has been a critical error on this website.June 2, 2023 at 11:43 am #1409384In reply to: Unable to update/modify some pages
This reply has been marked as private.June 1, 2023 at 6:01 pm #1409296In reply to: Change number of blog columns via media query?
The problem on that is that enfold organizes the entries (artikles) on a grid layout by column setting.
See here example page of enfold grid layout blog: https://kriesi.at/themes/enfold-2017/blog/blog-default/
if you take a look on developer tools you see that on a 3column grid groups of 3 entries are build to have that layout:
in a three-column grid layout, 3 entries each have their own wrapperso if you have the chance to handle the whole grid as one wrapper and have some media queries to style them you had to bring all entries to one wrapper
put this to your child-theme functions.phpfunction wrap_articles_in_one_flex_container(){ ?> <script type="text/javascript"> window.addEventListener("DOMContentLoaded", function () { (function($) { $('.avia-content-slider-inner .slide-entry-wrap .slide-entry').each( function() { $(this).detach().appendTo('.avia-content-slider-inner .slide-entry-wrap:first'); }); $('.avia-content-slider-inner .slide-entry-wrap:empty').remove(); })(jQuery); }); </script> <?php } add_action('wp_footer', 'wrap_articles_in_one_flex_container');And then style that one wrapper f.e. with flexbox layout on quick css:
#top .avia-content-slider .slide-entry-wrap { display: flex; flex-flow: row wrap; justify-content: space-between; } #top.blog .slide-entry::before, #top.blog .slide-entry::after { display: none; } #top .avia-content-slider .slide-entry-wrap .slide-entry { flex: 0 1 calc(33% - 30px) ; margin: 0px 15px 30px !important; width: unset !important; padding: 0px !important; } @media only screen and (max-width:989px) { #top .avia-content-slider .slide-entry-wrap .slide-entry { flex: 0 1 calc(50% - 30px); margin: 0px 15px 30px !important; } } @media only screen and (max-width:767px) { #top .avia-content-slider .slide-entry-wrap .slide-entry { flex: 0 1 100%; margin-bottom: 30px !important; } }see here : https://webers-testseite.de/blog/
One thing to mention: a paginated blog will not work correctly that way – because the amount of entries each page will not be influenced.
PS: On the example page of enfold there is an audio entry – and on this one the width calculation does not work because of a setting by Enfold. On this page it would be necessary to set the width:
#top .avia-content-slider .slide-entry-wrap .slide-entry .mejs-container { min-width: unset !important; width: unset !important; }May 30, 2023 at 10:37 pm #1409064In reply to: Installing New Licence
Hello,
I installed the new version of Enfold but I still have my error message in PHP.
“Deprecated: avia_post_nav_settings est obsolète depuis la version 4.5.6 ! Utilisez avf_post_nav_settings à la place. La gestion des valeurs de retour a changé in /homepages/2/d830992197/htdocs/amisbasilique/wp-includes/functions.php on line 5788”May 30, 2023 at 7:17 pm #1409050In reply to: working solution for different logo on scroll
Your topic of that is the way i understand – different logo during scrolling – stop scrolling default logo:
the method used for your aim depends on the logos you like to use.
E.g. – Logo a and logo b are only colored differently (change of font color – change of branding color etc.). I would try to realize it by an svg logo just switching the fill colors by scroll event.
Etc.F.e. two logo variants are by same dimensions. Insert your logo as usual – and set on quick css the other logo as background-image.
on my example page these are svg files – but png or jpg is also a possibility..av-contains-svg.invisible { background-image: url(/wp-content/uploads/icon807.svg); background-repeat: no-repeat; background-size: contain; background-position: center center; } .av-contains-svg.invisible svg { opacity: 0; transition: opacity 1s ease-in-out }the jQuery function now on child-theme functions.php:
function invisible_on_scrolling() { ?> <script type="text/javascript"> (function($){ let timeout; let $targetOnScroll = $('.av-contains-svg'); $(document).on("scroll", () => { $targetOnScroll.addClass("invisible"); clearTimeout(timeout); timeout = setTimeout(() => $targetOnScroll.removeClass('invisible'), 200); }); })(jQuery); </script> <?php } add_action('wp_footer', 'invisible_on_scrolling');see: https://webers-web.info/datenschutz/
Or: do you like to have different logo during shrink – after shrink finished – default logo
can you link to my post that you are referring to?May 30, 2023 at 3:56 pm #1409031In reply to: Please contribute and translate Enfold
Hi @korpak,
Thank you for reporting this. Will be fixed in next release.
If you need a hotfix in enfold/functions.php around line 214 you find:
// in backend must be loaded as option page breaks if( ( function_exists( 'did_filter' ) && did_filter( 'after_setup_theme' ) ) || is_admin() ) { avia_lang_setup(); }Replace these lines with:
avia_lang_setup();Do not forget to make a backup of the original file as a fallback.
If you need help let us know and we can do it for you.Best regards,
GünterMay 29, 2023 at 10:31 pm #1408962Topic: Installing New Licence
in forum Enfoldmguillou5670
ParticipantHello,
I just bought a new licence because I’ve an issue with php appearing on my website.I’ve a child theme and I don’t remember how to update it with the Enfold theme.
The error message says : ” deprecated: avia_post_nav_settings est obsolète depuis la version 4.5.6 ! Utilisez avf_post_nav_settings à la place. Return values handling has changed in /homepages/2/d830992197/htdocs/amisbasilique/wp-includes/functions.php on line 5788″
Can you help me on this matter ?
May 28, 2023 at 11:06 pm #1408901In reply to: How to use COMBO WIDGET only for COMMENTS?
Hi,
I added a combo widget to your blog sidebar and set it to only show the comments as Ismael discribed above, then I created a snippet in your snippet plugin:function add_widget_title_to_combo_widget() { ?> <script> (function($){ $('.inner_sidebar .avia_combo_widget').each(function() { $( this ).find('ul.news-wrap').detach().insertBefore('.tabcontainer'); $( '<h3 class="widgettitle">Kommentare</h3>' ).insertBefore('.avia_combo_widget ul.news-wrap'); $( this ).find('.tabcontainer').remove(); $( this ).find('.seperator.extralight-border').remove(); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_widget_title_to_combo_widget');and added this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
.js_active .avia_combo_widget .tabcontainer { display: none; }for this result:

please clear your browser cache and check.Best regards,
MikeMay 28, 2023 at 9:04 pm #1408896In reply to: How to add a script to my header?
Hi,
Thanks for your patience if you are not using a child theme then using the plugin WP Code would be the correct solution. If you are using a child theme then you could add the code to the child theme functions.php file.
I assume that you don’t want your code shown publicly so I won’t paste it here in Guenni007‘s snippet:function your_custom_script(){ ?> <script> // replace that line here by your script code </script> <?php } add_action('wp_head', 'your_custom_script');Please give this a try or include an admin login in the Private Content area so we can assist further.
Best regards,
MikeMay 28, 2023 at 1:20 pm #1408860In reply to: Post Link Format not directly linking
Hi,
Thanks Guenni007 but Jason wants the URL to the link post to redirect to the external link, in this case a PDF.
He is not referring to clicking on a link or post element such as a blog, masonry, or magazine item, he means the loading of the post should automatically redirect.
For example if you go to our Blog Grid Demo and click on the item This is a post with post type “Link” item

it will redirect to the external link, this is true for almost any element that shows the item, but what Jason wants this direct link to the post to redirect instead of landing on the post and then clicking on the post title:

A direct link like this doesn’t go though the loop-index.php, as I understand.
A redirect plugin would probably be the best solution, in my opinion.Best regards,
MikeMay 27, 2023 at 7:39 pm #1408810In reply to: Issue Updating Site
Hi,
Please keep using PHP v7.4, the error the link you followed has expired is typically due to the PHP ZipArchive Extension on your web server is not enabled, please ask your web host to enable it.Best regards,
MikeMay 27, 2023 at 7:16 pm #1408809In reply to: Issue Updating Site
Also, I am currently on PHP 7.4, when I uploaded to PHP 8, my site crashed.
May 27, 2023 at 5:27 pm #1408791In reply to: Issue Updating Site
Hey ewebbdesigns,
Thank you for the link to your site, I see that you are using Enfold v3.5.1 this doesn’t support WordPress v5+ or PHP v8
Before updating I recommend making a full backup of your site.
To update your version of Enfold you will need to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New

after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue

then you will see the Theme updated successfully message.
Best regards,
MikeMay 27, 2023 at 3:16 pm #1408782Topic: Issue Updating Site
in forum Enfoldewebbdesigns
ParticipantEvery time I try to update my site it crashes and says there is a critical error. I have time sensitive updates I need to make.
Things I have tried:
-Deactivating plugins/themes
-Updating and downgrading Php (7.4 currently, 8 crashes the site)May 26, 2023 at 2:54 am #1408603Topic: Can’t remove top padding in main menu container
in forum Enfoldgarysch37
ParticipantDear Support Team:
Well above (1 cm above) my main menu (it’s positioned in my header), I still have the finger mouse cursor used to select a menu item, and if I’m hovering in that space above a particular menu item that has a submenu, that submenu appears (in its correct place under that menu item). If I put a test border around the main menu’s container:
#top #header #header_main .inner-container .main_menu { border: 3px dashed red !important; }I see that padding-like space above the menu items, as you can see in this screenshot: https://www.dropbox.com/s/7fe8kabnc1g2rc7/menu%20container%20padding.jpg?dl=0
All I’m doing in my child header.css is:
#top #header #header_main .inner-container .main_menu { align-self: center; right: 0; height: inherit; }I probably got that height inherent from Enfold documentation, but it was so long ago in my new website design process, I can’t remember. But there’s no change if I leave out the height style.
The biggest problem is that if a user wants to copy and paste our phone number, they can’t because the mouse cursor is the finger instead of the text selection icon; and even if they start their selection in the snail or email address and drag downwards, they won’t be able to select the phone number. Perhaps I can fix this by changing the position of the menu along the z-axis, but that’s not the point. Hovering that far above the menu should not invoke the menu selector cursor, or the submenus.
I tried everything I could think of to get rid of that space and bring the top of the container to its proper place just above the menu items themselves. I can certainly affect the height of the container, but that only affects the container’s bottom edge, bringing it closer to the menu items, but not its top edge.
Also, my positioning of the menu is done via:
#top #header #header_main .inner-container .main_menu { top: 120px; }This position is exactly where I need it. Changing it moves the menu items to a different position, without affecting that top “padding”, and it’s not the correct position then.
Suffice it to say that I tried all kinds of things, including zeroing out all margins and paddings in CSS of the entire DOM structure under “#top #header #header_main .container .inner-container”, and specifically everything under “#top #header #header_main .container .inner-container .main_menu”. I’ve tried changing heights of all elements in that DOM; etc. I’ve also looked at all the DOMs in the browser’s Inspector and see no culprit, and tried turning off some value settings there. But nothing worked. The only thing I haven’t tried is looking through all Enfold/Aria parent files. But I thought it’s just faster to see if you have a solution.
Can you help please. I have some additional instructions for you in the private area, regarding my debug code (for debug borders) in my child functions.php if you need it.
Thank you,
Gary-
This topic was modified 2 years, 10 months ago by
garysch37.
May 25, 2023 at 8:09 pm #1408582Topic: PHP 8 errors and upgrading from 4.0.5
in forum Pre Sale QuestionsRyan
GuestHello I am a digital agency and our client is using Enfold 4.0.5 and we tried to upgrade to php 8.1 from php 7.4 and it gives us a fatal error related to your website.
If we upgrade to Enfold 5:
1. Should this give us php 8.1 support.
2. Will this affect our 4.0.4 design in any way.May 25, 2023 at 4:50 pm #1408556In reply to: Text transform & social media icon
Hi,
The reason that you are not seeing your social icon in your footer and instead see the shortcode[social-bookmarks]is because you didn’t add the function to make the shortcode work to your child theme functions.php, I added it for you and now it works.
This was the thread you are trying to duplicate, thanks to Guenni007’s solution.Best regards,
MikeMay 25, 2023 at 10:12 am #1408506In reply to: Enfold Theme
Hello
Thank you for tour quick reply.
I’ve just create and install the private token.here is the result. How to know of the last version is installed ?
We checked the token on 2023/05/25 08:10 and we were able to connect to Envato and could access the following information:
Your purchases
Your username: fabricela
Your E-Mail: (Email address hidden if logged out)
If you ever edit the restrictions of your personal token please re-vailidate it again to test if it works properly
Theme Updates
Once you have entered and verified your Envato Personal Token Key WordPress will check for updates every 12 Hours and notify you here, if one is availableYour current Parent Theme (Enfold) Version Number is 4.7.5
Your PHP version: 7.4.33May 24, 2023 at 4:35 pm #1408450In reply to: Footer sticky (curtain page effect) ON MOBILE
Hi Stilecatalini,
I have inserted the php code/snippet via WPCode since you don’t have a child theme (you can check it in the link in private content):
add_filter('avf_show_curtains_media_option', '__return_true');and have set the Footer options as @Guenni007 suggested.
@Guenni007 thanks for helping out :)Best regards,
NikkoMay 24, 2023 at 5:47 am #1408378Hello,
So I would be the one actually who contacted you and I know I’ve had a couple of questions lately but the biggest one still remains.
Of course I had to re-buy the theme since my webmaster vanished into thin air and was not able to reach out to him but at least I am here. So hopefully you might be able to help me. So your theme has a conflict with Rank Math Seo. First I went to those guys creating a LOOM. After a couple of days they could isolate the conflict, which is your theme. But after having bought the theme once again I was like okay let’s give it a try and let’s update it to the newest one, which of course I did and Rank Math just worked like perfectly. But after like 2 days I realized it broke my frontend. I tried to fix it I opened a thread here as well. But the harder I wanted to fix it the worse it got. So I re-installed one of my latest backup. I know use 5.0.1 again and the layout the page sped and everything is good but as soon as I upgrade I get an error message, which in Safari is the following: Error] TypeError: undefined is not an object (evaluating ‘aviaJS.aviaPlugins.register’)(anonymous function) (avia-footer-scripts-4619b90d68aa84bacc54710dbd11c254—6468ee44b03e1.js:17:73884)
Global Code (avia-footer-scripts-4619b90d68aa84bacc54710dbd11c254—6468ee44b03e1.js:17:73966)in Chrome as follows:
Uncaught TypeError: Cannot read properties of undefined (reading ‘register’)
at avia-footer-scripts-4619b90d68aa84bacc54710dbd11c254—6468ee44b03e1.js?ver=1684598584:21:73885
at avia-footer-scripts-4619b90d68aa84bacc54710dbd11c254—6468ee44b03e1.js?ver=1684598584:21:73966I tried to purge do it again, btw. I use a child theme edited functions, style, headers but couldn’t find a way around it.
I also added this problem of mine to another thread but your colleague said since I use the in-built css/js merging and minifying and I also use the same settings with WP-Rocket it is not gonna work. But if you take a look at my downgraded website, I use it exactly the same way twice minified and twice merger and never had any problem before, The site is very fast, Core vitals are good, no frontend problems, but with the newest theme js not loading, styling falling apart. Not even the cookie-consent-bar popped up, the layout sliders stopped working, sometimes the vid on m main page started loading and the next the site broke. I got many console errors so I created a thread about this but there was no answer at least satisfactory enough for me so I turned to chatGPT ‘with whom’ we managed to come up with a fix.
(function() { function aviaFoldUnfoldSection(element) { var sectionElement = document.querySelector(element); sectionElement.addEventListener('click', function() { if (sectionElement.style.display === 'none') { sectionElement.style.display = 'block'; } else { sectionElement.style.display = 'none'; } }); // Additional code for the functionality of the plugin // ... // Return any necessary values or objects (if needed) } if (typeof aviaJS !== 'undefined' && aviaJS.aviaPlugins) { aviaJS.aviaPlugins.register(aviaFoldUnfoldSection, '.avia-fold-unfold-section'); } else { console.error('aviaJS or aviaPlugins is undefined'); } })();also added the following in functions.php
function enqueue_custom_scripts() { wp_enqueue_script('avia-fold-unfold-section', get_template_directory_uri() . '/js/avia-fold-unfold-section.js', array('jquery'), '1.0', true); } add_action('wp_enqueue_scripts', 'enqueue_custom_scripts');But turned out it only worked till I minified everything again. So I was back to square 1. From mobile I tried with every possible combination between WP-rocket and in-built optimizer I maybe could start the site twice not the mention the awful core vitals because of the raw, unlimited, not-minified javascripts and styling of course. So sorry for my language I screwed a couple days with it trying to find a solution but I gave up. I restored the theme, which I had earlier. So now everything works perfectly good even I get the solutions to my small problems, since I am not in IT, I just had to step up a little to maintain, update, etc and i started from around 50 in core vitals and now I am at 100 in best practice and SEO performance is between 92-100 and the accessibility is the lowest with like 88 because I found that the least important so I just started getting the score ip this last week. I would be more than happy with this version of your theme because everything works just perfectly but the Rank Math. With the newest theme everything was awful but the Rank Math.Kind of ironic So the guys from there re-directed me to you in order to be able to fix the problem as they said you have the tools to troubleshoot. Sorry for this long letter but I couldn’t explain it in less words. The is the shortest it could get anyways. :D
Long story short I bounced into your changelog and I just saw that your last release or next to launch had 1 fix, which is kind of similar to mine : fixed: Uncaught Error: Call to undefined function apply_filter() in class avia_masonry.
So I was like I am gonna give it a try, why not. Don’t you have any idea what can cause my problem with this new version. Of course I give credentials below to FTP and WpAdmin, the API token is inserted into the theme. So maybe if you have any idea how to fix it, I would be very grrateful. I send the loom video where I show that the SEO plugin does not work and send you a couple seo result, core vitals so that you can see with these settings using this version of theme how good my site can be but with the newer version I barely could make it run.Many thanks for taking even the time to read this awfully long and boring message.
And I hope there might be a solution for my problem.Thanks again,
-
This reply was modified 2 years, 10 months ago by
davidv126. Reason: not sure if the private content can be seen. Here on my end after clicking on submit it disappears but when I click to to edit, it reappears
May 24, 2023 at 4:47 am #1408369In reply to: Logo color with transparent header on mobile devices
Hi heinerpompeiner,
Please try to add this code in your in your child theme’s functions.php:
If you don’t use a child theme yet, then you can use a plugin to insert this PHP code/snippet like WPCode – Insert Headers and Footers + Custom Code Snippets:function add_custom_script(){ ?> <script> (function($){ $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 50) { $("#header").addClass("header-scrolled"); } else { $("#header").removeClass("header-scrolled"); } }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_script');Then in Enfold > General Styling > Quick CSS, add this CSS code:
@media only screen and (max-width:767px) { #top .header_bg { background-color: transparent; opacity: 0; filter: alpha(opacity=0); } #top #header.header-scrolled .header_bg { background-color: white; opacity: 1; filter: alpha(opacity=100); } .responsive #top #header.header-scrolled .logo img.alternate, .responsive #top #header .logo > a > img { opacity: 0; } .responsive #top #header .logo img.alternate, .responsive #top #header.header-scrolled .logo > a > img { display: block; opacity: 1; } }Hope it helps.
Best regards,
Nikkosee f.e. a portfolio masonry:
https://webers-testseite.de/portfolio-masonry/i set the popup in child-theme functions.php to:
( that is just for that page-id on my code )function add_modal_popup_einstellungen() { if(is_page(42989)){ ?> <script type="text/javascript"> window.addEventListener("DOMContentLoaded", function () { (function($) { $('.av-masonry-entry').on('click', function(e){ e.preventDefault(); }); $('.av-masonry-entry').magnificPopup({ removalDelay: 700, type:'iframe', midClick: true, }); $(document).on('click', '.popup-modal-dismiss', function (e) { $.magnificPopup.close(); }); })(jQuery); }); </script> <?php } } add_action('wp_footer', 'add_modal_popup_einstellungen');some css ( in this case the opacity is set to 0.97 that you can see it is a lightbox – if it is 1 – it’s nearby your example page from above.
#top.page-id-42989 .mfp-bg { background-color: #FFF; opacity: 0.97; } #top.page-id-42989 .mfp-iframe-scaler { width: 100%; height: 80vh; overflow: hidden; } #top.page-id-42989 .mfp-iframe-holder .mfp-close, #top.page-id-42989 .mfp-image-holder .mfp-close { color: #000; }May 23, 2023 at 4:38 pm #1408295In reply to: Sticky flyout button
Hi M-Graphics24,
Thanks for giving us admin access.
It seems you don’t have a child theme, so I removed the code from functions.php (since it will be overwritten when the theme is updated).
I have installed a plugin called WPCode where I inserted the code instead, I also replaced the code with:function custom_script() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ var button = $('<div id="sticky-button-wrap"><a href="#" class="sticky-button">Get a<strong> Quote</strong></a></div>'); $(button).prependTo('#main'); })(jQuery); }); </script> <?php } add_action('wp_footer', 'custom_script');If you want to change anything or add a link to the button, you can go to the link in private content (you can also deactivate the code, if ever you decide to remove it).
Then in Quick CSS, I have removed the code since it’s inside a media query for mobile, and added this CSS code on top:#sticky-button-wrap { position: fixed; right: 0; top: 40%; z-index: 503; } #sticky-button-wrap .sticky-button { background: rgba(45,186,127,.95); display: block; width: 90px; height: auto; padding: 12px 6px; text-align: center; text-transform: uppercase; line-height: 1 !important; color: white; font-size: 15px; line-height: 1.4; border-radius: 4px 0 0 4px; letter-spacing: .05rem; transition: all .3s ease-in-out; } #sticky-button-wrap .sticky-button:hover { background: #2DBA7F; } #sticky-button-wrap .sticky-button strong { display: block; font-weight: 700 !important; }Please review your site.
Best regards,
NikkoMay 23, 2023 at 2:28 pm #1408253Hi Mike,
I probably don’t get what you are saying since I am very much a noob in these things, but I am not trying to highlight menu items. I want to highlight an active HTML anchor, as described on the W3 schools website for example. When I use their ‘Try it yourself’ it does exactly what I want to achieve :) If it is indeed better that I use the current-menu-item class, can you please explain to me how I can achieve the same result? Now I simply added to the Quick CSS:
.current-menu-item {
background-color: #ecfa73;
}
so I get why that id is always in the background color, but I don’t know how to change thatI created two examples on one of my pages. The one called ‘Link 1’ is always in the CSS class color, which I do not want. The one called ‘Link 2’ only is highlighted when you enter the full address on the address bar with /#test2 added. Not when you click ‘this goes to link 2’
Regards,
AlbertMay 23, 2023 at 7:31 am #1408225Topic: WordPress error
in forum Enfoldbennettsimon
ParticipantHi There,
We received an email which trigger by wordpress when there’s a fatal error. Below is the whole email sent automatically to us.
Currently the site is working fine but wondering what’s this error is about and does it need any attention?Thanks!
G’day!
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with your theme, Enfold.
First, visit your website and check for any visible issues. Next, visit the page where the error was caught (/wp-admin/admin-ajax.php) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
/wp-login.php?action=enter_recovery_mode&rm_token=aONAxkECytjDT4LrgBLxOF&rm_key=L3PXHvJSRRuSji8H96mFw7
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.2.2
Active theme: Enfold Child (version 1.0)
Current plugin: (version )
PHP version 8.2.5Error Details
=============
An error of type E_ERROR was caused in line 826 of the file wp-content/themes/enfold/functions.php. Error message: Uncaught Error: Failed opening required ‘/wp-content/themes/enfold/includes/loop-comments.php’ (include_path=’.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php’) in /wp-content/themes/enfold/functions.php:826
Stack trace:
#0 /public_html/wp-settings.php(591): include()
#1 /public_html/wp-config.php(79): require_once(‘/pu…’)
#2 /public_html/wp-load.php(50): require_once(‘/pu…’)
#3 /public_html/wp-admin/admin-ajax.php(22): require_once(‘/pu…’)
#4 {main}
thrownMay 22, 2023 at 7:20 pm #1408186In reply to: function for truncate breadcrumbs not working
sorry, maybe the maintanence mode was because I had the post open in another browser window. I have closed that now.
I’m sorry, but I don’t like it when the versions “jump” like this when the page is reloaded: the shortened breadcrumbs and the category name above the post title.
I’ve never had anything like this.
Isn’t there another way to solve this?
I don’t know if I’ll use a cache plugin – but that’s another story.
For example, I use Ismael’s function here (https://kriesi.at/support/topic/postslider-php-how-to-switch-title-and-category/#post-1027605) and nothing “jumps” when the page loads .
Or isn’t there another option as a function – for shortening the breadcrumbs and the category name above the post title please?May 22, 2023 at 2:26 pm #1408139Hi NicomIT,
Thanks for giving us access.
I have modified this part of the code in single-branches.php (line 26):get_template_part( 'includes/loop', 'index' );to:
get_template_part( 'includes/loop', 'branches' );so it will fetch includes/loop-branches.php, and in loop-branches.php, I have added this code (starts with line 307):
/* * Get Values */ $address = get_post_meta( get_the_ID(), 'address', true ); /* * Add Values to Content */ $content_output .= "<h4>Address: {$address}</h4>";There other values that I have added, you just need to fill in the rest and arrange the structure.
The first part of the code was just fetching the values from the metaboxes and the second part is adding it to the content.
Please review your site.Best regards,
NikkoMay 22, 2023 at 1:39 pm #1408136In reply to: function for truncate breadcrumbs not working
Thanks, Mike, this code works concerning the length of the breadcrumbs.
But I discovered a weird behaviour of your code concerning the breadcrumbs, as well as your code from today concerning the category above the title – see here –>:if you reload the page, you will see for a short moment
a) the not truncated breadcrumbs before they appear truncated thanks of your code, and
b) the category name below the post title before it then appears above the post title.That looks strange. Is it because of this EventListener thing?
Is there another way to solve this so that when you refresh the page you don’t see the old version for a moment?
Something like this –> here?-
This reply was modified 2 years, 10 months ago by
BeeCee. Reason: new login data
May 22, 2023 at 12:41 am #1408099Hi,
Thank you for your patience and the link to your site, I assumed that you wanted the creation date and last modified date in a single line so I added this to your child theme functions.php:function add_postdate_after_single_post_titles() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ var publishdate = '<?php echo get_the_time(get_option('date_format'));?>'; var modifieddate = '<?php echo get_the_modified_date( get_option('date_format'));?>'; $('#top.single-post').each(function () { $('<time class="date-container minor-meta updated">Publish Date: ' + publishdate + ' Modified Date: ' + modifieddate + '</time>').css({'top':'-25px','position':'relative'}).insertAfter('.blog-categories.minor-meta'); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'add_postdate_after_single_post_titles');Best regards,
Mike -
This topic was modified 2 years, 10 months ago by
-
AuthorSearch Results
-
Search Results
-
hi – i recently updated a VERY old (i think version 4.5?) and broken site for a client. it appears that the update went well and I’m not getting an error except when i activate the child theme. below is the error message. is this something that can be fixed? i’d hate to lose the site.
Fatal error: Uncaught Error: Call to undefined function avia_get_option() in /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-content/themes/pinnacle-brand-management/index.php:16 Stack trace: #0 /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-includes/template-loader.php(106): include() #1 /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-blog-header.php(19): require_once(‘/home/customer/…’) #2 /home/customer/www/pinnacle-brandmanagement.com/public_html/index.php(17): require(‘/home/customer/…’) #3 {main} thrown in /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-content/themes/pinnacle-brand-management/index.php on line 16
There has been a critical error on this website.Topic: Installing New Licence
Hello,
I just bought a new licence because I’ve an issue with php appearing on my website.I’ve a child theme and I don’t remember how to update it with the Enfold theme.
The error message says : ” deprecated: avia_post_nav_settings est obsolète depuis la version 4.5.6 ! Utilisez avf_post_nav_settings à la place. Return values handling has changed in /homepages/2/d830992197/htdocs/amisbasilique/wp-includes/functions.php on line 5788″
Can you help me on this matter ?
Topic: Issue Updating Site
Every time I try to update my site it crashes and says there is a critical error. I have time sensitive updates I need to make.
Things I have tried:
-Deactivating plugins/themes
-Updating and downgrading Php (7.4 currently, 8 crashes the site)Hello I am a digital agency and our client is using Enfold 4.0.5 and we tried to upgrade to php 8.1 from php 7.4 and it gives us a fatal error related to your website.
If we upgrade to Enfold 5:
1. Should this give us php 8.1 support.
2. Will this affect our 4.0.4 design in any way.Topic: WordPress error
Hi There,
We received an email which trigger by wordpress when there’s a fatal error. Below is the whole email sent automatically to us.
Currently the site is working fine but wondering what’s this error is about and does it need any attention?Thanks!
G’day!
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with your theme, Enfold.
First, visit your website and check for any visible issues. Next, visit the page where the error was caught (/wp-admin/admin-ajax.php) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
/wp-login.php?action=enter_recovery_mode&rm_token=aONAxkECytjDT4LrgBLxOF&rm_key=L3PXHvJSRRuSji8H96mFw7
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.2.2
Active theme: Enfold Child (version 1.0)
Current plugin: (version )
PHP version 8.2.5Error Details
=============
An error of type E_ERROR was caused in line 826 of the file wp-content/themes/enfold/functions.php. Error message: Uncaught Error: Failed opening required ‘/wp-content/themes/enfold/includes/loop-comments.php’ (include_path=’.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php’) in /wp-content/themes/enfold/functions.php:826
Stack trace:
#0 /public_html/wp-settings.php(591): include()
#1 /public_html/wp-config.php(79): require_once(‘/pu…’)
#2 /public_html/wp-load.php(50): require_once(‘/pu…’)
#3 /public_html/wp-admin/admin-ajax.php(22): require_once(‘/pu…’)
#4 {main}
thrown


