Viewing 30 results - 1 through 30 (of 1,618 total)
  • Author
    Search Results
  • Thanks for your input. And yes, I know the issue was caused by the Enfold theme, I had already tried debugging with fallback themes where the Hivepress listing search worked just fine. Unfortunately, we had to stick with the Enfold theme as the whole website was already fully built with it and its ALB visual editor, making it impossible to switch themes just for Hivepress compatibility.

    However, yesterday I took a full day to investigate the Enfold theme files, and I am happy to report that I have found the cause, and thus could fix the problem. Enfold developers might want to read on to understand and fix this potentially problematic code, as it might cause incompatibility issues with not just Hivepress but also other WordPress extensions that use their own search logic.

    The file causing the Hivepress search problem is found in the Enfold theme file structure, namely

    /themes/enfold/includes/helper-template-logic.php

    In this file exists a function called “avia_search_query_filter”, starting around line 37. Its purpose is to “make sure that empty searches are sent to the search page as well”. Empty searches would mean standard text searches without a keyword (search term).

    Unfortunately, this function does not check for custom post_types, it just addresses all searches. The URL https://wiras.dora.group/?post_type=hp_listing&s= should definitely display the search results for the custom “Listing” post type, which is Hivepresses’ own custom post_type (since the parameter is in the URL after clicking Search), and not be treated as a standard text search.

    The problem is that most Hivepress searches would be considered “empty” searches as they don’t have a keyword parameter, but are searches by checkbox, select menue or radio button values (these are generated by the listings “custom fields”). Thus, the above mentioned function of the Enfold theme hijacks those searches and instead of handing them over to Hivepress, redirects them to the themes’ own “Nothing found” search result page.

    All I had to do now is to comment out the whole function in the file “helper-template-logic.php”, starting from line 41 until line 66:

    41 if(!function_exists(‘avia_search_query_filter’))
    42 {
    43 function avia_search_query_filter($query)
    […]
    64 add_filter(‘pre_get_posts’, ‘avia_search_query_filter’);
    65 }

    For now this works for us, as we don’t use a standard text search on the site anyway. We just have to be careful when updating the theme.

    You might consider finetuning your function to check for “custom post types” and exclude them from the search redirecting, as it seems your current approach is a bit too general and has the potential to hijack other plugins custom search patterns.

    Best regards,
    Sebastian

    Hey sescha,

    Thank you for the inquiry.

    Is it working correctly when using the default WordPress search widget instead of the theme’s AJAX search? You can test this by adding a Search widget in the Appearance > Widgets panel.

    Another option is to use the avf_ajax_search_query filter to adjust the default query so it retrieves listings based on their custom fields. You may need to contact hivepress for the correct query parameters.

    Let us know the result.

    Best regards,
    Ismael

    sescha
    Participant

    Hello! We are using the “Hivepress” directory plugin to build a directory of law firms. The website itself is built with Enfold.

    The problem:
    When using the built-in search functions or filtering functions on the Hivepress generated webpages, i.e. for searching Law firms by custom fields such as location, speciality, or category, the website redirects to a generic (Enfold) “Nothing found” result page, instead of using the Hivepress result page with listings. So each user search on the Hivepress directory for listings will result in an Enfold standard page that says “Nothing found – Would you like to try a new search?” Obviously because the standard WordPress search only searches for keywords in titles and texts, but has no clue about the Hivepress custom fields for listings.

    I do not know why this happens – when I debug the website by switching to a generic theme, such as “Twenty Twentyfive”, the Hivepress search works fine. Only when activating the Enfold theme it does not.

    So my question is: Does Enfold actively grab search requests and redirects them to its own result page? This would explain why Hivepress never kicks in with its own result page. And if this is true, is there any way to keep Enfold from doing that? Deactivate some code?

    If we don’t find a solution, we will have to re-create the whole website with another theme, just to become compatible with Hivepress. I would hate to do that, as it has taken us almost 2 months to build the site with Enfold.

    Any ideas highly appreciated! I can also upload screenshots or offer admin access to the dev website, if needed!
    Cheers, Sebastian

    #1490771
    milkrow
    Participant

    I have created a portfolio grid that displays portfolio entries by a specific category and sorted those items by title. However, these portfolio items have custom fields (ACF) and I would like to order by the value of one of those fields. How do I do that?

    Thank you for any guidance!
    KC

    #1490228

    Hi,

    Thank you for the update.

    but when I created a new “portfolio”, the custom layout did not exist in ALB.

    You need to create all of your portfolio items first before running the function. The function will look for all items in the same post type, switch the builder to ALB by creating all the necessary post meta information or custom fields, and then apply your selected custom layout. After running it once, you can delete the code.

    It’s also possible to connect it to a custom button so that you can run it manually when needed, but that would require additional modifications beyond the scope of support.

    Let us know if you need more info.

    Best regards,
    Ismael

    #1490214
    This reply has been marked as private.
    #1489740

    Hey jacobedgren4,

    Thank you for the inquiry.

    Unfortunately, this option is not available by default and would require template modifications, such as using custom fields and creating meta boxes for them in the page editor. Another option is to manually create your own grid using columns and text elements in the builder. You can then add a button element in each column and assign the appropriate link.

    Let us know if you need more info.

    Best regards,
    Ismael

    #1489358
    CharlieTh
    Participant

    We are displaying weekly Youtube sermons in our website as videos.
    We would like to also insert “cleaned up” transcripts, using the magic of ChatGPT.
    We get a lovely html with print buttons, pdf buttons, style sheet — but cannot figure out how to insert this html document on our Enfold page.

    I have tried to use content in Accordion. Have learned that won’t work.

    (Obviously, each week transcript will be different, so hoped I could use Advanced Custom Fields to store document info and then display via my custom post template.)

    Right now, I am trying Textblock — in Code, not Visual.

    I see the document nicely displayed on BACKEND, but on FRONTEND, I do NOT see the document displayed.

    Since STYLE was included in the HTML — I moved style out to a Codeblock.

    SCRIPT is also in there and I can move it out to another Codeblock.

    What is your suggestion to “see” the document on the FRONTEND?

    Thanks in Advance…

    Below is the attempted code…

    `[av_codeblock wrapper_element='' wrapper_element_attributes='' codeblock_type='' alb_description='' id='' custom_class='' template_class='' av_uid='av-mfpdws8b' sc_version='1.0']
    <style>
    /* ——– Base Styles ——– */<br />
    :root {<br />
    –bg: #0b0c0f;<br />
    –card: #11131a;<br />
    –ink: #e8ecf1;<br />
    –muted: #aeb7c2;<br />
    –accent: #6aa2ff;<br />
    –accent-ink: #0b1b3a;<br />
    –rule: #1e2330;<br />
    }<br />
    html, body { height: 100%; }<br />
    body {<br />
    margin: 0;<br />
    background: radial-gradient(1200px 1200px at 10% -10%, #1b2030 0%, var(–bg) 60%);<br />
    color: var(–ink);<br />
    font: 16px/1.7 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, “Apple Color Emoji”, “Segoe UI Emoji”;<br />
    -webkit-font-smoothing: antialiased;<br />
    -moz-osx-font-smoothing: grayscale;<br />
    }</p>
    <p> .wrapper {<br />
    max-width: 860px;<br />
    margin: 48px auto 96px;<br />
    padding: 0 20px;<br />
    }</p>
    <p> .toolbar {<br />
    position: sticky;<br />
    top: 0;<br />
    z-index: 10;<br />
    backdrop-filter: blur(10px);<br />
    -webkit-backdrop-filter: blur(10px);<br />
    background: color-mix(in srgb, var(–bg) 80%, transparent);<br />
    border-bottom: 1px solid var(–rule);<br />
    }<br />
    .toolbar-inner {<br />
    max-width: 860px;<br />
    margin: 0 auto;<br />
    padding: 10px 20px;<br />
    display: flex;<br />
    gap: 10px;<br />
    align-items: center;<br />
    justify-content: flex-end;<br />
    }<br />
    .btn {<br />
    appearance: none;<br />
    border: 1px solid var(–rule);<br />
    background: linear-gradient(180deg, #1a2233, var(–card));<br />
    color: var(–ink);<br />
    padding: 10px 14px;<br />
    border-radius: 14px;<br />
    cursor: pointer;<br />
    font-weight: 600;<br />
    transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease;<br />
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);<br />
    }<br />
    .btn:hover { transform: translateY(-1px); }<br />
    .btn:active { transform: translateY(0); }<br />
    .btn.accent {<br />
    border-color: color-mix(in srgb, var(–accent), #000 50%);<br />
    background: linear-gradient(180deg, color-mix(in srgb, var(–accent) 50%, #fff 0%), var(–accent-ink));<br />
    color: white;<br />
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);<br />
    }</p>
    <p> .card {<br />
    background: linear-gradient(180deg, #131827, var(–card));<br />
    border: 1px solid var(–rule);<br />
    border-radius: 22px;<br />
    padding: 28px 28px 36px;<br />
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);<br />
    }</p>
    <p> h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; }<br />
    h1 {<br />
    font-size: clamp(28px, 4.2vw, 44px);<br />
    letter-spacing: -0.02em;<br />
    margin-bottom: 12px;<br />
    }<br />
    .meta { color: var(–muted); margin-bottom: 28px; }</p>
    <p> h2 {<br />
    font-size: clamp(20px, 2.5vw, 26px);<br />
    margin-top: 34px;<br />
    }</p>
    <p> p { margin: 12px 0; }<br />
    ul { margin: 8px 0 16px 24px; }<br />
    li { margin: 6px 0; }</p>
    <p> blockquote {<br />
    margin: 18px 0;<br />
    padding: 16px 18px;<br />
    border-left: 4px solid var(–accent);<br />
    background: color-mix(in srgb, var(–card), #000 8%);<br />
    border-radius: 10px;<br />
    }<br />
    blockquote p { margin: 0; }</p>
    <p> hr { border: none; border-top: 1px solid var(–rule); margin: 28px 0; }</p>
    <p> .note { color: var(–muted); font-size: 14px; }</p>
    <p> /* Drop cap for the opening paragraph */<br />
    .lead:first-letter {<br />
    float: left;<br />
    font-size: 3.2em;<br />
    line-height: 0.9;<br />
    padding-right: 10px;<br />
    margin-top: 6px;<br />
    font-weight: 800;<br />
    color: var(–accent);<br />
    text-shadow: 0 6px 16px rgba(106,162,255,0.35);<br />
    }</p>
    <p> /* Print styles */<br />
    @media print {<br />
    body { background: white; color: #111; }<br />
    .toolbar { display: none !important; }<br />
    .wrapper { margin: 0; max-width: 100%; }<br />
    .card { box-shadow: none; border: none; border-radius: 0; padding: 0; }<br />
    a { color: black; text-decoration: none; }<br />
    .note { color: #444; }<br />
    @page { size: A4; margin: 20mm; }<br />
    h1 { font-size: 28pt; }<br />
    h2 { font-size: 16pt; margin-top: 18pt; }<br />
    p, li, blockquote { font-size: 11.5pt; }<br />
    blockquote { background: #f6f6f6; border-left-color: #888; }<br />
    }<br />
    </style>
    [/av_codeblock]

    [av_textblock fold_type='' fold_height='' fold_more='Read more' fold_less='Read less' fold_text_style='' fold_btn_align='' textblock_styling_align='' textblock_styling='' textblock_styling_gap='' textblock_styling_mobile='' size='' av-desktop-font-size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' font_color='' color='' background='bg_color' background_color='' background_gradient_direction='vertical' background_gradient_color1='#000000' background_gradient_color2='#ffffff' background_gradient_color3='' padding='' padding_sync='true' av-desktop-padding='' av-desktop-padding_sync='true' av-medium-padding='' av-medium-padding_sync='true' av-small-padding='' av-small-padding_sync='true' av-mini-padding='' av-mini-padding_sync='true' fold_overlay_color='' fold_text_color='' fold_btn_color='theme-color' fold_btn_bg_color='' fold_btn_font_color='' size-btn-text='' av-desktop-font-size-btn-text='' av-medium-font-size-btn-text='' av-small-font-size-btn-text='' av-mini-font-size-btn-text='' fold_timer='' z_index_fold='' id='' custom_class='' template_class='' av_uid='av-mfpdtbrg' sc_version='1.0' admin_preview_bg='']
    <div class=”toolbar” aria-label=”Document tools”>
    <div class=”toolbar-inner”><button class=”btn” title=”Send to a printer”>
    ️ Print
    </button>
    <button class=”btn accent” title=”Use your browser’s Save as PDF option in the dialog”>
    Download PDF
    </button></div>
    </div>
    <div class=”wrapper”><article id=”content” class=”card”><header>
    <h1>Sermon: “You Are the Light of the World”</h1>
    <div class=”meta”>Text: Matthew 5:14–16</div>
    </header>
    <p class=”lead”>So, you might have noticed the theme. Send the Light. Thy Word is a lamp. There’s definitely a theme going here.</p>
    We are continuing through the best sermon ever preached by the greatest preacher ever. We have seen Jesus giving assurances to His followers in the Beatitudes—letting them know that His followers are blessed.

    Last week, we began looking at the section where Jesus tells His followers that they are salt and light.
    <h2>Salt</h2>
    We learned a few things about salt in Jesus’ day. Salt was precious. When Jesus said, “Ye are the salt of the earth,” His disciples understood the value. Salt was so valuable it was sometimes used as payment for soldiers.

    Its value came from its purpose:

    • Preservative – As salt, we preserve the holiness of God and His Word in the world.
    • Purifier – Salt was used as a cleansing agent; so are we in the world.
    • Penetrating – Salt works its way in. We are called to go into all the world with the gospel.
    • Creates thirst – Salt makes people thirsty. Do we, by our lives, make people thirst for the living water that is Christ?

    Jesus also warned of useless salt: “If the salt has lost its savour… it is good for nothing, but to be cast out and trodden under foot of men.” Notice, Jesus never challenged us to be salt or light. He simply said, you are.

    <hr />

    <h2>Light</h2>

    Matthew 5:14–16 — “Ye are the light of the world. A city that is set on a hill cannot be hid. Neither do men light a candle and put it under a bushel, but on a candlestick, and it giveth light unto all that are in the house. Let your light so shine before men that they may see your good works and glorify your Father which is in heaven.”

    What a title. What a privilege—that Jesus would say we are the light of the world. But what does He mean?
    <h3>Jesus, the True Light</h3>
    John wrote of the Light in John 1:4–9: “In Him was life, and the life was the light of men. And the light shineth in darkness, and the darkness comprehended it not… That was the true Light, which lighteth every man that cometh into the world.” Of course, John was speaking of Jesus.

    Jesus confirmed it Himself in John 8:12—“I am the light of the world.” Again, in John 9:5—“As long as I am in the world, I am the light of the world.” But then Jesus turned to His disciples and said, “Ye are the light of the world.”
    <h3>The Nature of Our Light</h3>

    • It is personal – Jesus has given every believer this light. He didn’t say we might be light someday; He said we are light.
    • It is His light in us – We are not the source. Jesus is. We are the lamp, the candle, the bulb through which His light shines.
    • It is powerful – Even the smallest light conquers darkness. A single match in a dark cave changes everything.

    Paul reminds us in 2 Corinthians 4:6 that God “commanded the light to shine out of darkness” into our hearts. Philippians 2:15 calls us to shine as lights “in the midst of a crooked and perverse nation.”

    The tragedy is that much of the darkness in our world exists because Christians have hidden their light.
    <h3>The Purpose of Our Light</h3>

    • To shine – Light is not made to be hidden under a bushel but set on a candlestick.
    • To expose – Light reveals what is hidden in darkness, including sin.
    • To reflect – Like the moon reflects the sun, we reflect the Son.
    • To guide – Like runway lights, a lighthouse, or a warning sign, our light points others to safety and to the Father through Christ.

    <h3>The Result of Our Light</h3>
    Jesus says, “Let your light so shine before men that they may see your good works and glorify your Father which is in heaven.” Our light draws others to God. Our good works should point people to Him, not to ourselves. Salvation is mankind’s greatest need—and our shining light directs people to Christ.
    <h2>Closing Challenge</h2>
    Light always overcomes darkness, but it must shine to make a difference. Is your light shining for Jesus? Can you truly sing, “This little light of mine, I’m going to let it shine”? Or are you hiding your light under a bushel?

    If you are trusting in Christ, you have His light. Let it shine.

    Prayer — “Lord, we thank You for Your Word this morning and the encouragement that we are the light of the world. Help us not to cover or hide the light, but to let it shine, that others may see our good works and glorify our Father in heaven. Amen.”

    <p class=”note”>Tip: Use Print to send directly to a printer, or choose Save as PDF in the print dialog to download a PDF copy.</p>

    </article></div>
    <script>
    // Optionally hide buttons when printing (extra safety for non-supporting browsers)
    window.addEventListener(‘beforeprint’, () => {
    document.querySelector(‘.toolbar’)?.setAttribute(‘data-hidden’, ‘true’);
    });
    window.addEventListener(‘afterprint’, () => {
    document.querySelector(‘.toolbar’)?.removeAttribute(‘data-hidden’);
    });
    </script>
    [/av_textblock]

    #1489186
    Robert Berrier
    Guest

    Hi Team Enfold, Kriesi,

    I have been using Enfold for 10 years(?). I have no idea when it came out, but it feels like forever. Having used it on three websites, two of which are still online (links below). I wanted to give some serious user feedback to you and your team since I hope it will help you to make it even better! I totally understand if there is no room for such a thing in your team. So I’m simply sending it as a “here you go, some seriously golden nuggets, do with it what you want” type of email :)

    Websites:
    MeshMasters.com (up2date)
    RobertBerrier.com (old, and needs an update)

    Before I slap all the feedback points. Know that I am a (3D) artist, with limited web coding knowledge. So I don’t know what is possible or not.

    1) Often I want to have media like an image or video, but also text fields, to the left or right, or center of a section or part of the website, but in a smaller size than the container it’s in. For example, if I have a full width color section. Within that color section, I can use a 1/4 container with the media/text in it, another 3/4 container next to it to “force” it to be at a smaller size to the left or right of that color section. Or, I want to have a 1/3 sized media/text in the center of the website, so I put two 1/5 containers to the left and right. This “works”, but it’s finicky. I often rather want the media to be at a fixed (smaller) size, no matter what is next to it. Even better would be a percentage. Eg, this media should always be 20% size compared to the browser window, or 20% of the container it’s in. The container it is in would still be its max possible size. But it will try to get close to the smaller percentage or pixel size. This can somewhat be done with using a smaller resolution image. But this is also finicky because of all the different screen resolutions, especially in our age with HD vs 4k. So, a better way to “size” down images without having to container it. Perhaps a percentage setting in the media element itself.

    2) The ability to have (all) elements be in the center of of the page. Eg, media, containers, buttons. If they are smaller than the color section or container they are in. I often want them in the center of that color section or container. No matter what responsive size we are in. Currently I need to do this with “buffer” containers to try and align it to the setting.

    I have created some CSS code with a Class ID that I can add to a color section. Then everything in that color section will be centered. But I believe this should be a default setting within a color section and containers. Eg, “align all content within this container/color section to the Left/Center/Right.

    3) I use CSS code to not have the header be transparent. I would say this should be an option in the Enfold settings. Rather than needing to code.
    #header {
    background-color: #1d1d40; /* This is needed for the opacity change */
    opacity: 1 !important;
    }

    4) When text is in BOLD or STRONG. It gets an assigned color from the theme options. Not a bad idea, but it is a shared color with I believe “Primary Color – Font color for links, dropcaps and other elements” This means we users have less control over how text and it’s colors looks like. I suggest that BOLD and STRONG has a separate color option within the Theme color settings. In my opinion, links and BOLD should be seen as two different things to customize. I currently use CSS code to adjust this.

    5) For all my websites I have a max website width setting, as set in the Enfold settings. But sometimes, I want a color section to use its own unique size. For example, you will see on MeshMasters.com that the portfolio section is a full-width color section. While the contact section at the button is a bit smaller than the website’s width settings. Having this as a setting in color sections would give people more options to make cool layouts. Currently I have this CSS code for this:

    /* ========================================== */
    /* === Color sections width additions === */
    /* ========================================== */

    /* === Full width, no padding === */
    #fullwidth-container-nopadding .container {
    width: 100% !important;
    min-width: 100%;
    padding: 0;
    margin: 0;
    }

    /* === Full width, small padding === */
    #fullwidth-container-smallpadding .container {
    width: 100% !important;
    min-width: 100%;
    padding: 10px;
    margin: 10px;
    }

    /* === Full width, default padding === */
    #fullwidth-container .container {
    width: 100% !important;
    min-width: 100%;
    }

    5) Similar to the point above. I want my blog posts to be a smaller width. Since it makes reading large pieces of text easier. So having a separate width setting for blog posts could be interesting to add. For example, the main website is at say 85% width. But perhaps all blog posts are at 70%.

    6) Font sizes on the main page (or landing pages) are often large. To grab attention with cool copy writing that sells. These are often smaller pieces of text. But on blog posts you have large pieces of text. And so a smaller font size makes it more readable. Since there is only one BODY or P font size for the entire website. You are stuck in choosing one for all pages. I currently made CSS code so on blog posts all font sizes are 95% or 90% smaller than the rest of the website. Perhaps this could also be a setting in the Enfold theme settings. Eg “blog posts font sizes”.

    7) There are currently three responsive break points in pixels. I believe it’s 990px and 768px and 480px. Perhaps this is the standard in web development. But the ability to change these website wide would be great. Eg, If I change the 990px to say 800px in the enfold settings. Then on all other instances where this is used, like in color sections, containers, etc. That value is also reflected there in the UI.

    8) When columns break down for responsiveness. They break down into a single column. Eg, a column of 3 containers, becomes a column of 1 with 3 containers below each other. Having options to control to how many columns it breaks would be great. Eg, 4 columns of containers next to each other (4×1). Could be 2 columns of 2 containers next to each other. Eg, 2×2. Instead of 1×4. More controls options for this would be AMAZING!

    9) fyi, I used CSS code to adjust the masonry gap size (to 4 px). It’s a small thing, but perhaps a quick win to add to the Masonry settings and so to make the theme better.

    10) another small thing. I use CSS code to remove the Gallery border.

    11) I use CSS code to remove the Blog button hover effect. Perhaps also a quick win to add to Enfold.
    /* === Hover icon disable === */
    .slide-entry-wrap .image-overlay-inside:before { display: none; }

    /* === Hover overlay color === */
    .image-overlay { background: #0f0f26; }

    12) Very similar where I remove the Featured Image effect:
    .big-preview.single-big a{
    pointer-events:none!important;
    }

    13) And also the blog page excerpts and dates:
    /* === Remove blog page excerpts === */
    .blog .slide-entry-excerpt { display: none; }

    /* === Remove blog page dates === */
    .slide-meta { display: none !important; }

    14) Tables are very difficult to adjust. There is no control over it’s color and borders. I use quite a lot of CSS code to adjust them. Perhaps this should be an entire section in the Enfold themes to control them?
    I currently use code to:
    – Adjust colors for: General cells, uneven cells, even cells, header cells, the borders
    – Thickness of borders and its colors
    – Give transparency to cells.
    – And then to apply these settings to each different theme area (Logo area, main area, alternative area, footer area, socket area)

    15) the button element is missing padding and margin settings (and maybe also alignment settings?)

    16) There are default padding settings for Color Sections. 0%, 20%, Default(?), 70% and 130%. It would be great if we can adjust these globally in the Enfold Settings. And ofcourse these changes are reflected in the Color Section padding settings. For example, Perhaps I want the default to be 60%, the large 100% and the extra large 150%

    Yes, I am aware you can put in custom values in the element itself. But it’s better to align values website wide.

    That’s it. I hope it helps and you can improve Enfold to an even better edition!

    Robert Berrier

    #1488685

    Ismael, I had a chat with Chatgpt and we came up with this code.

    // Voegt een custom calender icoon aan een data veld
     function ava_custom_calendar_icon_script() {
        ?>
        <style>
            .custom-date-wrapper {
                position: relative;
                display: inline-block;
                width: 100%;
            }
    
            .custom-date-wrapper input[type="date"] {
                width: 100%;
                padding-right: 40px; /* ruimte voor het icoon */
                position: relative;
                z-index: 2;
                background-color: #fff;
            }
    
            .custom-date-wrapper::after {
                content: "📅";
                position: absolute;
                right: 12px;
                top: 50%;
                transform: translateY(-50%);
                pointer-events: none;
                font-size: 20px;
                color: #888;
                z-index: 3;
            }
        </style>
    
        <script>
            function addCalendarIconToDateInputs(context = document) {
                context.querySelectorAll('input[type="date"]:not(.calendar-styled)').forEach(function (input) {
                    if (input.closest('.custom-date-wrapper')) return;
    
                    var wrapper = document.createElement('span');
                    wrapper.className = 'custom-date-wrapper';
    
                    input.classList.add('calendar-styled');
    
                    input.parentNode.insertBefore(wrapper, input);
                    wrapper.appendChild(input);
                });
            }
    
            document.addEventListener('DOMContentLoaded', function () {
                addCalendarIconToDateInputs();
    
                // Contact Form 7 AJAX support
                document.addEventListener('wpcf7invalid', function (event) {
                    addCalendarIconToDateInputs(event.target);
                });
                document.addEventListener('wpcf7submit', function (event) {
                    addCalendarIconToDateInputs(event.target);
                });
    
                // Extra: hoogte instellen voor mobile
                if (window.matchMedia("(max-width: 768px)").matches) {
                    document.querySelectorAll('input[type="date"]').forEach(function(input) {
                        input.style.height = '40px';
                        input.style.lineHeight = '40px'; // mooi gecentreerd
                    });
                }
            });
        </script>
        <?php
    }
    add_action('wp_footer', 'ava_custom_calendar_icon_script', 9999); 

    For now the height is the same as my other fields, and I have a calendar icon on my iphone.
    The width of the field doens’t seem adapable.

    • This reply was modified 3 months ago by Chris mssn.
    #1488647

    Hi,

    Could it be that IOS blocks the datepicker settings?

    Yes, based on other threads, iOS enforces its own style and behavior for input fields with the type date or date picker. We recommend reaching out to the plugin developers for additional assistance with this issue.

    You can try this script to convert the date input field to a normal text field, but we can’t guarantee it will resolve the issue.

    function ava_custom_script() {
        ?>
        <script>
            // convert input date to text 
            document.addEventListener('DOMContentLoaded', function() {
                document.querySelectorAll('input[type="date"]').forEach(function(input) {
                    input.setAttribute('type', 'text');
                    input.setAttribute('readonly', 'readonly');
                });
            });
        </script>
        <?php
    }
    add_action('wp_footer', 'ava_custom_script', 9999);
    

    Best regards,
    Ismael

    #1488380

    Could this have anything to do with the change? I didn’t make any changes here but ???

    Enfold Theme Options>Layout Builder

    Custom Layout And Dynamic Content
    Select if you want to use dynamic content (e.g. post data, custom fields) and create modifiable custom layouts for post types.
    SELECTION: Custom Layout (admins only) and dynamic content

    After activating this feature you must reload the backend to load the necessary menus to work with the “Custom Layout Screens”.
    Attention when using caching plugins: Whenever you make changes to a “Custom Layout” please clear your server cache to show the changes.
    We recommend to use ACF (Advanced Custom Field) plugin for a user friendly way to manage content of custom fields and custom post types: Download plugin from WordPress

    Hi,

    Thank you for the update.

    You can also adjust the content of the privacy modal window by enabling the “Modal Window Custom Content” option. Look for the shortcode starting with av_privacy_ in the Tab Content fields to remove the unnecessary privacy toggles.

    View post on imgur.com

    Please note that any scripts related to Google, such as the map and recapthca, will not load by default unless you’ve enabled them in the theme options.

    Best regards,
    Ismael

    #1487957

    Hey Antonio,

    Thank you for the inquiry.

    Try to add a 1/3 column element alongside a 2/3 column element. In the 1/3 column, insert three Button elements. Set each Button Link manually, and enter #1, #2, and #3 in the link fields respectively. In the 2/3 column, add an Easy Slider with three images and make sure the dots navigation is enabled. After that, add the following script in the functions.php file to trigger the dots navigation when a Button element is clicked.

    add_action( 'wp_footer', 'av_custom_script', 100 );
    function av_custom_script() {
        ?>
        <script>
        // trigger slider dots
        jQuery(document).ready(function($) {
            $('.avia-button').on('click', function(e) {
                var targetHref = $(this).attr('href');
                if (targetHref && targetHref.startsWith('#')) {
                    var slideDot = $('.goto-slide[href="' + targetHref + '"]');
                    if (slideDot.length) {
                        e.preventDefault();
                        slideDot.trigger('click');
                    }
                }
            });
        });
        </script>
        <?php
    }

    Let us know the result.

    Best regards,
    Ismael

    #1487166

    I understand that Gemini is likely to get me into trouble but as long as I’m on this ACF journey, triggered by Enfold :), I thought I’d run this by you. Your video tutorial link in the documentation is based on the free version of ACF. I understand that. I asked Gemini:

    “I am now doing an ACF tutorial by the author of the Enfold theme. I am at this place in the tutorial. (If that link doesn’t take you to the relevant part of the video, it is at the 8 minute mark). The tutorial is for the free version of ACF. As I have the Pro version which gives me Gallery privileges I would like to know how I can use that at this point in the video where I need to select WP Custom Fields.”

    This is the reply by Gemini. I don’t know if you prefer longer responses like this to be entered into the chat itself or via a link. In this case I have created a PDF.

    What do you think?

    Thank you
    John

    • This reply was modified 4 months, 1 week ago by mediaapps.
    • This reply was modified 4 months, 1 week ago by mediaapps.
    • This reply was modified 4 months, 1 week ago by mediaapps.
    #1487101

    Hey John,

    Thank you for the inquiry.

    There is no dedicated video tutorial for the dynamic content and custom layout, but this documentation should help.

    https://kriesi.at/documentation/enfold/custom-layout-and-dynamic-content

    Mike also created a few articles that should explain how to utilize ACF fields on custom layouts.

    https://savvyify.com/dynamic-content-custom-page-layouts-and-acf/
    https://savvyify.com/acf-custom-fields-in-woocommerce-products/

    Let us know if you need more info.

    Best regards,
    Ismael

    #1486965

    I see, thanks for the answer. That would be an interesting improvement however! In this way I should avoid creating a custom template from scratch.

    Just one question in terms of mysql optimization. I am dealing with hundreds of portfolio items. Until now I was using the application of a Avia Layout Builder template (i.e. creating the page layout ans save it as a template), which I uploaded every time a new portfolio item had to be created and substituting text/images inside. The mysql wp_posts and wp_posts_meta tables are obviously quite big. By using ACF custom fields for the content and apply a Custom Layout with dynamic contents looks to me a “lighter” solution in terms of mysql tables. Am I correct? Thanks

    • This reply was modified 4 months, 2 weeks ago by elenapoliti. Reason: I added a further question
    #1486939
    elenapoliti
    Participant

    I use Accordion to show/hide a button (see example page in private content).
    I am trying to create a custom layout with some ACF custom fields. Among these the button should contain a ACF field = text (area_name) and a ACF url (the link to download a document)

    However when I add the button in the Accordion and use Dynamic Content instead of Button Label and Link settings, the button after toggling the accordion looks broken. This is the shortcode inside the accordion

    [av_button label='{acf_field_6878d372becf1:ISRA name}' icon_select='yes' icon='ue82d' font='entypo-fontello' link='manually,https://' link_dynamic='{acf_field_6878d26880177:Factsheet download link}' link_target='' size='medium' position='left' label_display='' title_attr='' size-text='20' av-desktop-font-size-text='' av-medium-font-size-text='' av-small-font-size-text='' av-mini-font-size-text='' margin='' margin_sync='true' padding='20px' padding_sync='true' av-desktop-margin='' av-desktop-margin_sync='true' av-desktop-padding='' av-desktop-padding_sync='true' av-medium-margin='' av-medium-margin_sync='true' av-medium-padding='' av-medium-padding_sync='true' av-small-margin='' av-small-margin_sync='true' av-small-padding='' av-small-padding_sync='true' av-mini-margin='' av-mini-margin_sync='true' av-mini-padding='' av-mini-padding_sync='true' color_options='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' btn_color_bg='theme-color' btn_custom_grad_direction='vertical' btn_custom_grad_1='#000000' btn_custom_grad_2='#ffffff' btn_custom_grad_3='' btn_custom_grad_opacity='0.7' btn_custom_bg='#444444' btn_color_bg_hover='theme-color-highlight' btn_custom_bg_hover='#444444' btn_color_font='theme-color' btn_custom_font='#ffffff' btn_color_font_hover='white' btn_custom_font_hover='#ffffff' border='' border_width='' border_width_sync='true' border_color='' border_radius='' border_radius_sync='true' box_shadow='' box_shadow_style='0px,0px,0px,0px' box_shadow_color='' animation='' animation_duration='' animation_custom_bg_color='' animation_z_index_curtain='100' hover_opacity='' sonar_effect_effect='' sonar_effect_color='' sonar_effect_duration='1' sonar_effect_scale='' sonar_effect_opac='0.5' css_position='' css_position_location=',,,' css_position_z_index='' av-desktop-css_position='' av-desktop-css_position_location=',,,' av-desktop-css_position_z_index='' av-medium-css_position='' av-medium-css_position_location=',,,' av-medium-css_position_z_index='' av-small-css_position='' av-small-css_position_location=',,,' av-small-css_position_z_index='' av-mini-css_position='' av-mini-css_position_location=',,,' av-mini-css_position_z_index='' id='' custom_class='' template_class='' av_uid='av-22oe9u' sc_version='1.0' admin_preview_bg='']

    On the other hand if I create a simple button in a column everything works fine. My problem is that I need to use the button inside the accordion styled as it is now.

    Do you have any suggestion?

    #1486540
    syberknight-tb
    Participant

    is there any way to add <br/>‘s and <strong>‘s in the email that is generated from the contact form submissions withOUT having to alter theme file(s)???

    would be nice to bold the field labels & colons and also add an extra line break between them in the emails.

    if it can’t be done without modifying any theme files (unless it can be a Child Theme file?), then nevermind. but please put it in a wishlist for future versions. to have something in the Enfold settings interface where we could customize how the emails look (no matter how many form fields or labels it has).
    thanks.

    #1486439

    Hey hubertba,

    Thank you for the inquiry.

    Have you tried using the woocommerce_checkout_fields filter? Please check this documentation for more info: https://developer.woocommerce.com/docs/code-snippets/customising-checkout-fields/

    You can also try the following plugin: https://wordpress.org/plugins/woo-checkout-field-editor-pro/

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    The code in the Custom CSS and Quick CSS fields shouldn’t conflict, but for easier maintenance, we recommend using only one. Regarding the Horizontal Gallery, this element is intended for image galleries, but you’re currently using it more like a post slider with text and meta information, which requires additional customization. We suggest using a more appropriate element such as Blog Posts, Post Slider, or Content Slider, or consider moving the slide items to their own subpages.

    Best regards,
    Ismael

    #1485305

    I was able to narrow the offending wp_options table entries to those associated with the following option_name values and their associate option_variable entries:

    widget_text
    Widget_avia_mailchimp_widget
    widget_custom_html

    Then the content of those entries option_variable fields are deleted, the widget areas reappear and can be populated as desired. Unless you have another suggestion, it appears that I will need to rebuild each of my sidebar areas.

    Thank you!

    #1484892
    This reply has been marked as private.
    #1484549
    Jason E
    Participant

    Okay, so I must be doing something stupidly wrong.

    I have an ACF-based Custom Post Type of FAQs, a Taxonomy of FAQ Categories, and a Field Set of FAQs Fields

    My goal was to have an accordion that had a toggle that was of the question, and then the answer displayed in the Accordion Content section.

    I set the Accordion Toggle to the correct ACF field, using the ACF drop-down in the accordion panel.
    I then put the Answer field within the body content of the Accordion content field.

    What I get is a strange string in the Toggle and a strange string in the content with the Answer showing up after. It looks like it might just be a formatting error with quotes, but not sure the proper way to set it up, as I am trying to automate the creation of these.

    What is the best approach as you look at this and think scalability?

    Hi,

    We are not sure how the form saves the post, but for the default post editor, you can use either the wp_insert_post_data or the save_post hook to add additional functionality, such as applying a custom layout to a post, before it is saved to the database.

    https://developer.wordpress.org/reference/hooks/save_post/
    https://developer.wordpress.org/reference/hooks/wp_insert_post_data/

    The required fields were already included in the previous post.

    Best regards,
    Ismael

    Thank you very much for your reply!
    Unfortunately, this doesn’t solve the issue I’m facing.

    I have already seen the documentation at https://kriesi.at/documentation/enfold/custom-layout-and-dynamic-content/, but it requires selecting the custom layout manually in the Advanced Layout Builder (ALB) for each post.

    What I’m looking for is a way to apply a saved custom layout automatically to newly created posts in a custom post type – in my case, “anzeige”.
    These posts are not created in the backend but via a frontend form that fills ACF fields. So I would like the layout to be applied automatically without manual selection in the backend.

    Is there a way to assign a specific ALB layout automatically to posts, either via code or some internal Enfold function?

    Thank you again for your help!

    #1483508

    Hello Ismael,

    Thank you very much for your response. Thanks to the documentation below, I figured out to show custom fields. Now, I will try to be able to compare listed products based on custom fields. Any suggestions? Thank you….

    • This reply was modified 7 months ago by a_edemirci.
    #1483466

    Hey a_edemirci,

    Thank you for the inquiry.

    Are you using the Advanced Layout Builder to create the product content? Please note that ACF fields will not display automatically in this case. You may need to switch to the default editor or use the dynamic content feature to manually display the ACF field values. Please check the documentation below.

    https://kriesi.at/documentation/enfold/custom-layout-and-dynamic-content/

    Best regards,
    Ismael

    #1481948
    mcbusta
    Participant

    Hi!

    I was trying to create a custom layout containing a section with a dynamic background (Custom Field Image) value: {wp_custom_field:_thumbnail_id}

    It works OK for one post, but background image is being cached and displayed for all other posts as well.

    I dag into the av_section code to find that attribute is being rendered nicely, but the dynamic CSS class (avia-section.av-m8303wih-f038c6badb9db50289ff3c9a39d18731) that defines section background does not update.

    A quick workaround for this scenario:

    // Force bg for secion as it does not update when dynamic avia element is used
    // Enfold forces CSS bg, but it is cached and does not update for different posts
    //  although it is calculated OK for secion atts
    add_filter('avf_sc_section_before_close', function($output, $atts) {
    	if (!$atts['src_dynamic'] ?? false || !$atts['src'] ?? false)
    		return $output;
    
    	$style_attr = ' style="background-image: url('. esc_url($atts['src']) .') !important;"';
    
    	return substr_replace($output, $style_attr, 4, 0);
    }, 999, 2);
    #1480749

    Hey mattb1169,

    Thank you for the inquiry.

    Did you set the Row Margins > Custom Top and Bottom Margin of the column element to -205px? Please make sure to adjust the value using the dedicated fields for mobile view.

    View post on imgur.com

    Best regards,
    Ismael

Viewing 30 results - 1 through 30 (of 1,618 total)