Viewing 30 results - 2,701 through 2,730 (of 244,613 total)
  • Author
    Search Results
  • Hi,
    Glad we were able to help, I don’t know of other effects, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

    #1484540
    panoptic2012
    Participant

    Hello,

    I’m trying to run a BigCommerce store using the Enfold theme, but there’s a critical error that’s giving the white screen of death when I try to view the homepage. The back-end stays up and running, but when the BigCommerce plugin is active, the site doesn’t exist. I’d love to keep using the Enfold theme and would hate to have to use something else for this site. Any help would be greatly appreciated!

    WordPress version 6.8.1
    Active theme: Enfold Child (version 1.0) Current plugin: (version ) PHP version 8.2.18

    Error Details
    =============
    An error of type E_ERROR was caused in line 1602 of the file /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php. Error message: Uncaught Error: Call to undefined function avia_wc_clear_catalog_ordering_args_filters() in /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php:1602
    Stack trace:
    #0 /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php(753): avia_masonry->query_entries(Array, false)
    #1 /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php(810): avia_sc_masonry_entries->get_element_styles(Array)
    #2 /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1178): avia_sc_masonry_entries->shortcode_handler(Array, ”, ‘av_masonry_entr…’, Array)
    #3 /home1/enginendo/public_html/cjm/wp-includes/shortcodes.php(434): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ”, ‘av_masonry_entr…’)
    #4 [internal function]: do_shortcode_tag(Array)
    #5 /home1/enginendo/public_html/cjm/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(av_but…’, ‘do_shortcode_ta…’, ‘[av_slidesho…’)
    #6 /home1/enginendo/public_html/cjm/wp-includes/class-wp-hook.php(324): do_shortcode(‘[av_slidesho…’)
    #7 /home1/enginendo/public_html/cjm/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[av_slidesho…’, Array)
    #8 /home1/enginendo/public_html/cjm/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(137): apply_filters(‘the_content’, ‘

    #1484538
    NicomIT
    Participant

    I am getting a flood of deprecation warnings in my error_log file and it is slowing down our server’s performance, especially noticeable when editing posts and pages.

    It appears the offending functions are:
    av_icon_char
    av_icon_class
    av_icon_string

    I cannot find information on what the correct replacements are. Is this something you can help me with?

    Here are some samples of how we are currently using these functions.

    av_icon_char
    $icon = av_icon_char( ‘search’ );

    av_icon_string
    $class = av_icon_class( ‘search’ );

    av_icon_string
    ‘ id=’scroll-top-link’ <?php echo av_icon_string(‘scrolltop’); ?>><span class=”avia_hidden_link_text”><?php _e(‘Scroll to top’, ‘avia_framework’);?></span>

    Here are some examples from the error_log file:

    [21-May-2025 18:26:12 UTC] PHP Deprecated: Function av_icon_char is deprecated since version 7.0! Use No longer used by Enfold instead. in /home/maritimetravel/public_html/wp-includes/functions.php on line 6121
    [21-May-2025 18:26:12 UTC] PHP Deprecated: Function av_icon_class is deprecated since version 7.0! Use No longer used by Enfold instead. in /home/maritimetravel/public_html/wp-includes/functions.php on line 6121
    [21-May-2025 18:26:12 UTC] PHP Deprecated: Function av_icon_char is deprecated since version 7.0! Use No longer used by Enfold instead. in /home/maritimetravel/public_html/wp-includes/functions.php on line 6121
    [21-May-2025 18:26:12 UTC] PHP Deprecated: Function av_icon_class is deprecated since version 7.0! Use No longer used by Enfold instead. in /home/maritimetravel/public_html/wp-includes/functions.php on line 6121

    Our error_log file grows about 200 MB per day.

    Can you please direct me on how we can update our child theme to address these deprecation warnings?

    #1484534
    EZSAVE
    Participant

    Can you advise how to re-size a the woocommerce single product page image? Using Appearance>Customize>Woocommerce settings does nothing. My images are uploaded at 300×300 and are being resized to a much larger image. I am guessing the Enfold theme is overriding Woo. Any help would be greatly appreciated

    Hi Ismael,

    I do have the problem on multiple installs right now. The editor can “edit_posts” and I still get the error …

    You find the login details in private.

    The settings are:
    • Deactivated ALB for everyone exept admin
    • Code in functions.php to allow it for admin AND editor
    • Without “remove_filter” because change in 2021 (see above)
    • Both have “edit_posts” capability
    • Error occurs only in Enfold 7

    Hope you find a solution. Thanks in advance!

    Best regards,
    Daniel

    #1484529

    In reply to: cURL error 28

    Hi,

    Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

    Hey love2web,

    Please try the following in Quick CSS under Enfold->General Styling:

    div.comment-entry {
      display: none !important; 
    }

    Best regards,
    Rikard

    #1484527

    Hi,

    Thanks for the update. Are you sure that you are installing the correct file? The zip file that you download from Themeforest might have to be unpacked on your local machine, then select to install enfold.zip located inside of the unpacked directory.

    Best regards,
    Rikard

    #1484522

    Is it possible to restore my website to the old version of Enfold and see if it works then? I am not getting full cooperation from the hosting party and I want to switch to another party anyway.
    Could you help me with this? Perhaps it will work then.

    #1484515

    Hi,

    Thank you for the update. You may need to toggle or temporarily disable the Enfold > Performance > File Compression settings. If it’s still not working, please provide the login details in the private field so we can inspect the elements.

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    In enfold/config-templatebuilder/avia-template-builder/php/class-save-buildertemplate.php file, the aviaSaveBuilderTemplate methods have a permission check that only allows users with the edit_posts capability to interact with the builder templates.

    if( ! current_user_can( 'edit_posts' ) )
    			{
    				die();
    			}

    Please make sure that the Editor role has the capability to “edit_posts”.

    https://wordpress.org/documentation/article/roles-and-capabilities/#edit_posts

    If the issue persists, post the login details for an admin and editor account in the private field so we can check the issue further.

    Best regards,
    Ismael

    #1484507

    Hey connect4consulting,

    Thank you for the inquiry.

    You can add this css code to adjust the mobile menu breakpoint.

    @media only screen and (max-width: 1366px) {
      .responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item {
        display: none;
      }
    
      .responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item-avia-special {
        display: block;
      }
    }

    Please make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the code.

    Best regards,
    Ismael

    andreasb68
    Participant

    Hi Enfold support team,

    I’m using Enfold with a child theme and I’m trying to completely remove the H1 page title from single blog posts. I’m not looking to just hide it via CSS – I want it not to be rendered at all in the HTML source code.

    The heading I’m referring to looks like this in the frontend:

    <h1 class=”post-title entry-title” itemprop=”headline”>My Blog Title</h1>

    I’ve already tried using the avf_title_args filter and even added this to my functions.php:
    add_filter(‘avf_title_args’, ‘remove_post_title_in_single’, 10, 2);
    function remove_post_title_in_single($args, $id) {
    if (is_single()) {
    $args[‘title’] = ”;
    }
    return $args;
    }

    But the H1 is still showing up in the source code of the post.

    Can you please confirm:

    Which template or hook is responsible for rendering this H1?

    What is the best way to remove it completely from the markup (e.g. via remove_action() or overriding a template in the child theme)?

    Is there an officially supported way to do this for blog posts?

    Thanks in advance for your help!
    – Andreas

    H.O. GmbH
    Participant

    I’m currently working on a webshop and want to use the advanced layout editor for the product pages.
    I’m working with variable products and when I’m changing to advanced layout editor instead of standard editor, the variable product options (like select fields) aren’t shown on the product page anymore. When I’m switching to standard editor again, it shows.
    Is there a possibility to make variable products work with advanced layout editor from enfold?
    Thank u in advance!
    Anna

    Hey NMDahl,

    Thank you for the inquiry.

    The site is not using the Enfold theme. We also tried logging in, but the account information provided in the private field is invalid. Did you switch to a different theme?

    Best regards,
    Ismael

    NMDahl
    Participant

    Installed today – preview looks great but the live version it looks like the theme is missing.

    #1484463

    Hi,

    Kurze Info: Unter Enfold gibt es eine zweite Optionsseite: “Theme Extensions”. Dort befindet sich ein Tab “Accessibility”. Vielleicht hilft Euch dieses weiter.

    Best regards,
    Günter

    #1484451

    Hi,

    Thanks for the update. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

    #1484449

    Hi,

    Great, I’m glad to hear that you found the cause of your problem.

    PS. We just bought new version of Enfold since the old one didn’t activate anymore thanks to the changes in validation. It is not very nice that basic parts of the theme just doesn’t work.

    What exactly is not working? If you haven’t registered your theme license, then refer to this: https://kriesi.at/documentation/enfold/theme-registration/

    Best regards,
    Rikard

    #1484448

    Hi,

    Thanks for the update and feedback, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

    #1484439

    Hi, we already tried disabling all plugins, did not work (stated in the opening message). I also now have removed that old script from the Quick CSS.

    So there is no any new solutions or options we haven’t already tried?

    PS. We just bought new version of Enfold since the old one didn’t activate anymore thanks to the changes in validation. It is not very nice that basic parts of the theme just doesn’t work.

    #1484438

    Thanks that worked perfectly. It is a shame that enfold does not have an option within the advanced settings to set text colour changes when pages are scrolled.

    #1484436

    Not sure what you mean there. To be clear -I’m generating the code in Paypal. I then copy the code into the code tab on the WordPress page and initially it looks Ok. Then I change to the Visual tab and the button looks wrong. When i flip back to the code tab, extra lines of codes have been added. Word is not involved anywhere.
    Here’s a test page -I’ve just pasted in the code from Paypal which should produce a single button with drop down options:
    Code as it comes from Paypal
    If I then click on the visual tab to see my button it doesn’t look right -I’ve got multiple button instead of a single one:
    Button appearance after pasting code
    So I go back to the code tab and notice the code has changed -there are new ?select name=”os0″> lines before each menu choice which I haven’t put there.
    Code as changed by Enfold

    • This reply was modified 11 months, 1 week ago by FFAlan.
    #1484430

    hi Rikard… ok… Here is the link to access…
    in the first block of text on the home page, I tried to insert the strong tag in a sentence, but it doesn’t enlarge the text as it should… I did various tests in the enfold setting, but it doesn’t do anything.

    thank you for your help

    #1484428

    Hey a_edemirci,

    Thank you for the inquiry.

    You can add this css code to hide the default image overlay.

    #top .image-overlay {
        display: none !important;
    }

    Make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings afterwards.

    Best regards,
    Ismael

    Same issues. Logo still shows left justified on desktop and on mobile view, the logo is over the top button. There must be code that is working against this. Below is my entire code if you can take a look and see whats wrong. I don’t have products either, so not sure why I have all this code.
    I just need to fix these things and we are done with the website.
    thanks for your help

    .product-sales-count {
    font-size: 0.8em;
    margin-top: 0;
    top: -10px;
    position: relative;
    }

    /* TEXT SHADOW FOR – Fullwidth Easy Slider – Headline: */
    .avia_transform .av_slideshow_full .active-slide .avia-caption-title,
    .avia_transform .av_fullscreen .active-slide .avia-caption-title
    {text-shadow: 2px 2px 2px #717070;}

    /* TEXT SHADOW FOR – Fullwidth Easy Slider – Caption Text: */
    #top .avia-slideshow .av-slideshow-caption .avia-caption-content p {
    text-shadow: 2px 2px #717070;
    }

    /* TEXT SHADOW FOR – ALL H1 headlines: */
    .av-special-heading h1 {
    text-shadow: 1px 1px #717070;
    }

    /* TEXT SHADOW FOR – SPECIFIC H1 headlines: */
    .av-special-heading.av-nlr5x-bb365aeef7c91c871c871ed41100301d h1 {
    text-shadow: 1px 1px #717070;
    }

    /* TEXT SHADOW FOR – subheading text: */
    #top .av-subheading p {
    text-shadow: 1px 1px #717070;
    }

    #header_meta a, #header_meta span {
    font-size: 16px !important;
    line-height: 17px;
    }

    /* Sticky header on mobile */
    @media only screen and (max-width: 767px) {
    .responsive #top #main {
    /* Margin top value should be equal to header height*/
    margin-top: 80px;
    }
    .responsive #top #wrap_all #header {
    position: fixed;
    }
    }

    @media only screen and (max-width: 1100px) {
    .av-main-nav > li.menu-item { display: none; }
    .av-main-nav > li.menu-item-avia-special { display: block; }
    }

    .phone-info {
    font-size: 16px;
    }

    @media only screen and (max-width: 479px) {
    .responsive #top .slideshow_caption h2 {
    font-size: 18px !important;
    }

    .responsive #top .slideshow_caption .avia-caption-content {
    font-size: 16px !important;
    line-height: 14px;
    }

    .avia-slideshow-inner, .avia-slideshow-inner li, .avia-slideshow-inner li img {
    height: 30vh !important;
    }
    }

    span.avia-menu-text {
    text-transform: uppercase;
    }

    .avia-section.av-minimum-height .container .content {
    vertical-align: bottom;
    }

    .avia-section.av-minimum-height.text-bottom .container .content {
    vertical-align: bottom;
    }
    .avia-section.av-minimum-height.text-top .container .content {
    vertical-align: top;
    }

    .avia-button {
    border: 1.5px solid !important;
    }

    #top .avia-button {
    border-radius: 5px !important;
    }

    @media only screen and (max-width: 767px) {
    body, body .avia-tooltip {
    font-size: 20px;
    }
    }

    @media only screen and (max-width: 767px) {
    .page-id-3230 .avia-builder-el-0.av-minimum-height-100:not(.av-slideshow-section) .container {
    height: 767px !important;
    }
    }

    #main .sidebar a,
    #footer a,
    #socket a {
    text-decoration: underline;
    }
    a.avia-button{
    text-decoration:none!important;
    }
    @media only screen and (max-width: 989px){
    .html_mobile_menu_tablet #top #wrap_all .av_header_transparency {
    background-color: transparent;
    }
    .responsive #top #main {
    margin-top: 0;
    }
    }

    #top #wrap_all #socket .container {
    text-align: center;
    }

    #top #wrap_all #socket .container {
    text-align: center;
    }

    #top #wrap_all #socket .copyright {
    display: block;
    float: none;
    clear: both;
    text-align: center;
    }

    #top .content .flex_column .widget_nav_menu li {
    border-top-width: 0;
    border-bottom-width: 0;
    }

    #footer h3.widgettitle{
    border:none!important;
    }

    @media only screen and (max-width: 769px) {
    .flex_column.av-l3szqp26-162f9236fd15346c9c727f5f94b66dce {
    min-height: 50vh !important;
    }
    }

    .html_elegant-blog #top .post-entry .post-meta-infos,
    .html_elegant-blog .avia-content-slider .slide-meta,
    #top .news-time {
    display: none;
    }

    html, body {
    background-color: #fff !important;
    }

    #header:not(.av_header_transparency) #header_main {
    -moz-box-shadow:0 5px 5px rgba(182, 182, 182, 0.75);
    -webkit-box-shadow: 0 5px 5px rgba(182, 182, 182, 0.75);
    box-shadow: 0 5px 5px rgba(182, 182, 182, 0.75);
    }

    #top.single-product .product_meta {
    visibility: hidden;
    }

    .is-large.wc-block-cart .wc-block-cart-items th span {
    font-size: 2em;
    }

    table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    font-size: 2em;
    }

    .wc-block-components-form .wc-block-components-text-input.is-active label, .wc-block-components-text-input.is-active label {
    display: none;
    }

    #top div ul.product_list_widget li a {
    display: block;
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1.6em !important;
    }

    #top .dropdown_widget ul.product_list_widget li .quantity {
    color: #000000;
    font-size: 1em;
    }

    #top .dropdown_widget .total span.woocommerce-Price-currencySymbol, #top .dropdown_widget .total {
    color: #000000;
    font-size: 1em;
    }

    div .product-sorting {
    display: none;
    }

    @media only screen and (max-width: 767px) {
    .responsive #top #main {
    padding-top: 88px !important;
    }
    .responsive.html_header_transparency #top #main {
    padding-top: 0 !important;
    }
    }

    .page-id-432 .components-flex-item input, .page-id-433 .wc-block-components-text-input input {
    padding: 8px 116px;
    }

    .wc-block-cart__submit-container a .wc-block-components-button__text {
    color: #fff;
    }

    .wc-block-components-address-form-wrapper .components-base-control__label {
    top: -50px;
    }

    .wc-block-components-address-form-wrapper .components-base-control__label {
    top: -30px !important;
    }

    #top .av-product-class-minimal img {
    border-radius: 30px !important;
    }
    #top .av-product-class-minimal img {
    border-radius: 30px !important;
    }

    .select2-container–default .select2-results__option–highlighted[aria-selected], .select2-container–default .select2-results__option–highlighted[data-selected], #top .select2-results {
    color: #000 !important;
    }

    @media only screen and (max-width: 768px) {

    /* Add your Mobile Styles here */
    #top #bc-custom-section div .flex_column {
    width: 46% !important;
    margin-left: 3% !important;
    border-radius: 30px;
    }
    }

    #top #bc-custom-section div .flex_column img {
    border-radius: 30px;
    }

    .woocommerce-Tabs-panel ul {
    list-style: disc;
    margin-left: 15px;
    }

    .woocommerce-Tabs-panel ul, .woocommerce-product-details__short-description ul {
    list-style: disc;
    margin-left: 15px;
    }

    #menu-item-150 > a > .avia-menu-text {
    color: #f19809!important;
    }

    #av-burger-menu-ul .menu-item-150 > a > .avia-menu-text {
    color:#f19809!important;
    }

    #menu-item-2076 > a > .avia-menu-text {
    color: #f19809!important;
    }

    #av-burger-menu-ul .menu-item-2076 > a > .avia-menu-text {
    color:#f19809!important;
    }

    .avia-image-container .avia_image, .avia-image-container .avia-image-overlay-wrap {
    border-radius: 30px;
    }

    #footer .textwidget .menu-blissfull-main-menu-container p {
    margin: 0;
    width: auto;
    display: inline-block;
    }

    @media only screen and (max-width: 767px) {
    .responsive .home #wrap_all #av-section-shop-category .flex_column {
    width: 48%;
    padding: 1%;
    }
    }

    ul.a-unordered-list.a-vertical.a-spacing-mini li {
    margin-bottom: 20px;
    }

    #top .price, #top .price span, #top del, #top ins {
    display: inline;
    text-decoration: none;
    font-size: 24px;
    line-height: 24px;
    font-weight: 600;
    }

    .page-id-389 .shop_columns_3 .products .product {
    width: 100%;
    }

    .page-id-91 .shop_columns_3 .products .product {
    width: 100%;
    }

    h1{
    text-transform: capitalize !important;
    }

    .template-page .entry-content-wrapper h1{
    text-transform: capitalize !important;
    }

    a.cart_dropdown_link {
    font-size: 28px !important;
    }

    #top a.cart_dropdown_link span[data-av_icon] {
    font-size: 28px;
    color: var(–enfold-header-color-color);
    }

    #top #header .av-main-nav #menu-item-wc-account-icon > a {
    color: #f19809;
    font-size: 28px;
    }

    /* Increase base font size on mobile devices */
    @media only screen and (max-width: 767px) {
    body,
    p,
    .entry-content {
    font-size: 18px !important;
    line-height: 1.6 !important;
    }
    }

    @media only screen and (max-width: 767px) {
    #top .av-special-heading .av-subheading p {
    font-size: 24px
    }
    }

    img[src*=”amazon-adsystem”] {
    display: none;
    }

    #top .av-burger-overlay-bg {
    opacity: 0.8;
    background: #000;
    }

    ——————–

    div .logo {
    left: 37%;
    }
    div.av-burger-overlay-bg {
    background-color: rgba(0, 0, 0, .7);
    }

    #top .av-burger-overlay-bg {
    opacity: 0.8;
    background: #000;
    }

    #top .av-main-nav-wrap {
    float: right;
    position: relative;
    z-index: 3;
    padding: 0 !important;
    margin: 0 0 0 15px !important;
    }

    .header_color.av_header_transparency .av-hamburger-inner,
    .header_color.av_header_transparency .av-hamburger-inner::before,
    .header_color.av_header_transparency .av-hamburger-inner::after {
    background-color: #FFF !important;
    }

    #top .av_header_transparency .phone-info,
    #top .av_header_transparency .social_bookmarks li a {
    color: #FFF !important;
    }

    #top .av_header_glassy.av_header_transparency .avia-menu.av_menu_icon_beside {
    border: none !important;
    }

    #top .main_menu {
    width: 170px
    }

    #top .logo {
    /*width: calc(100% – 170px);*/
    width: 100%;
    left: unset;
    }

    @media only screen and (max-width: 767px) {
    #av_section_1 .container.av-section-cont-open,
    .page-id-910 #av-layout-grid-1 {
    padding-top: 130px !important;
    }
    }

    #top .logo img {
    left: 50%;
    transform: translateX(-50%)
    }

    @media only screen and (min-width: 768px) and (max-width: 989px) {
    .responsive.html_mobile_menu_tablet #top #wrap_all #header {
    position: fixed;
    }
    }

    @media only screen and (max-width: 767px) {
    #header .social_bookmarks {
    display: none !important;
    }
    }

    #top #wrap_all #av-burger-menu-ul li {
    font-size: 30px !important;
    }

    ——————-

    #av-burger-menu-ul li.av-show-submenu > a > .avia-menu-text {
    color: blue;
    }
    #av-burger-menu-ul li.av-show-submenu > .sub-menu > li > a > .avia-menu-text {
    color: #f5c526;
    font-size: 20px;
    line-height: 20px;
    }
    .html_av-submenu-hidden #av-burger-menu-ul .av-submenu-indicator:before {
    color: #f5c526;
    font-size: 20px;
    }
    #top #wrap_all #av-burger-menu-ul .menu-item-2846 {
    font-size: 24px !important;
    }

    .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li.av-show-submenu li {
    line-height: 20px;
    }

    • This reply was modified 11 months, 1 week ago by bemodesign.
    #1484415

    In reply to: Burger sub-menu

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

    #1484414

    Hey envis,
    You should upload only the webp images and add them to the galleries and other elements. I tested this on the different galleries, masonry, featured images, color section background image, blog post element, ect. There is no need to upload two versions of each image, just use the webp format directly.
    Assuming that you are only uploading jpg images and then using a plugin to convert them to webp copies, you could add this code to the end of your child theme functions.php file in Appearance ▸ Editor to show the webp version if the file name and location is exactly the same, the draw back to this approach is that you have twice as many images on your server with only half being used. This also won’t rewrite CSS background images in external CSS files — only inline styles and HTML output, so if you are using CSS File Compression And Merging, or another caching plugin and have background images such as a background image in a color section or a masonry element it may not work. In my tests once I cleared the css and cache it worked for me except the gallery short code like [gallery link="file" columns="5" ids="4350,870,868,864,862"] the gallery and other elements did work.

    add_filter('wp_get_attachment_image_src', function($image, $attachment_id, $size) {
        $webp_path = preg_replace('/\.(jpe?g|png)$/i', '.webp', get_attached_file($attachment_id));
        $webp_url = preg_replace('/\.(jpe?g|png)$/i', '.webp', $image[0]);
    
        if (file_exists($webp_path)) {
            $image[0] = $webp_url;
        }
    
        return $image;
    }, 10, 3);
    //for background images
    // Replace image URLs with .webp if the .webp version exists
    function enfold_replace_with_webp($buffer) {
        // Replace src="...jpg|png" and url('...jpg|png') with .webp if available
        return preg_replace_callback(
            '/(?:src|url)\s*=\s*["\']([^"\']+\.(?:jpe?g|png))["\']|url\(\s*["\']?([^"\')]+\.(?:jpe?g|png))["\']?\s*\)/i',
            function($matches) {
                $original_url = $matches[1] ?: $matches[2];
                if (!$original_url) return $matches[0];
    
                $parsed_url = wp_parse_url($original_url);
                if (empty($parsed_url['path'])) return $matches[0];
    
                $img_path = $_SERVER['DOCUMENT_ROOT'] . $parsed_url['path'];
                $webp_path = preg_replace('/\.(jpe?g|png)$/i', '.webp', $img_path);
                $webp_url = preg_replace('/\.(jpe?g|png)$/i', '.webp', $original_url);
    
                if (file_exists($webp_path)) {
                    // Return updated string (preserving whether it was src= or url())
                    if ($matches[1]) {
                        return str_replace($original_url, $webp_url, $matches[0]);
                    } else {
                        return 'url("' . $webp_url . '")';
                    }
                }
    
                return $matches[0];
            },
            $buffer
        );
    }
    
    // Start output buffering early
    function enfold_start_webp_buffering() {
        ob_start('enfold_replace_with_webp');
    }
    add_action('template_redirect', 'enfold_start_webp_buffering');
    

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    Also note that your server media handling editor needs to also support webp files, mine is WP_Image_Editor_GD, which is default for WordPress:
    Screen Shot 2025 05 18 at 5.02.43 PM
    If you are not able to directly use the webp images in your elements, this could be the cause.

    Best regards,
    Mike

    #1484408

    Hi,
    Please see our documentation here and note: Step 4: Import parent theme options and note all steps, especially step 3: Go to Enfold Theme Options > Import/Export > Import Settings From Your Parent Theme and import
    Screen Shot 2025 05 18 at 2.18.48 PM

    Best regards,
    Mike

    #1484406
    FFAlan
    Participant

    I often use Paypal to generate a code and then paste it into my website on the code tab. However, recently somehting has been scrambling the code such that it no longer produces the desired result. I’ve copy and pasted the code into Word and it copies as it should. However when I paste it into my Enfold themed page it adds extra code which I then have to manually delete. What’s going on here?:
    Here’s the relevant part of the code as generated by Paypal:
    <table>
    <tr>
    <td>
    <input type=”hidden” name=”on0″ value=”Options for Brondanw & Nantclwyd only”/>
    Options for Brondanw & Nantclwyd only
    </td>
    </tr>
    <tr>
    <td>
    <select name=”os0″>
    <option value=”Member”>
    Member £17.00 GBP
    </option>
    <option value=”Guest”>
    Guest £19.00 GBP
    </option>
    <option value=”2 Members”>
    2 Members £34.00 GBP
    </option>
    <option value=”1 Member + 1 Guest”>
    1 Member + 1 Guest £36.00 GBP
    </option>
    <option value=”Child under 16″>
    Child under 16 £10.00 GBP
    </option>
    </select>
    </td>
    </tr>
    </table>

    And after pasting it into my website:
     
    <table>
    <tbody>
    <tr>
    <td><input name=”on0″ type=”hidden” value=”Options for Brondanw & Nantclwyd only” />
    Options for Brondanw & Nantclwyd only</td>
    </tr>
    <tr>
    <td>
    <select name=”os0″>
    <option value=”Member”>Member £17.00 GBP</option>
    </select>

    <select name=”os0″>
    <option value=”Guest”>Guest £19.00 GBP</option>
    </select>

    <select name=”os0″>
    <option value=”2 Members”>2 Members £34.00 GBP</option>
    </select>

    <select name=”os0″>
    <option value=”1 Member + 1 Guest”>1 Member + 1 Guest £36.00 GBP</option>
    </select>

    <select name=”os0″>
    <option value=”Child under 16″>Child under 16 £10.00 GBP</option>
    </select></td>
    </tr>
    </tbody>
    </table>

    See all those <select name = “os0”> lines before each button choice? How did they get there and how can I prevent them from being added?

    • This topic was modified 11 months, 1 week ago by FFAlan.
Viewing 30 results - 2,701 through 2,730 (of 244,613 total)