Viewing 30 results - 301 through 330 (of 1,622 total)
  • Author
    Search Results
  • Hey laboiteapixels12,

    Thank you for the inquiry.

    You might be able to use the following hooks or filters (woocommerce_billing_fields & woocommerce_shipping_fields) to customize the checkout page and require users to input their phone numbers.

    // https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

    Code examples can be found within the documentation. You may need to override the billing_phone field and make it NOT optional.

    Best regards,
    Ismael

    laboiteapixels12
    Participant

    Hello,

    When a customer orders on my site, I would like to force them to indicate a 10-digit telephone number (10 numbers, no more, no less), without spaces or dots between the numbers. I tried the “woocommerce checkout field” plugin but it does not work: when I click on “my account” then on modify addresses, I find the initial fields, without restrictions. Do you have a solution please?

    Thank you in advance,

    Have a good day,
    Audrey

    #1302267
    disrupto
    Participant

    Hello,
    We use the Enfold Theme for our website and Gravity form for our forms.

    We have a styling issue with the checkboxes and buttons radio.
    They are not align with their label.
    I’m using the rules provided by the Gravity Form’s support to override the customizations made by the theme:
    body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container_radio .gchoice {
    display: inline-grid;
    grid-auto-flow: column;
    }
    body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container_checkbox .gchoice {
    display: inline-grid;
    grid-auto-flow: column;
    }
    But it doesn’t work correctly. The button is very far from the label.
    So could you help me on this topic please?

    I also have a styling issue when I try to display checkboxes (or radio buttons) in columns (the rules “gf_list_2col” works on Gravity forms’ preview but not in live).
    Do you have any solution for this?

    Thank you for your help.
    Céline

    #1302103

    Hi Yigit

    1. In fact, I had difficulty understanding how the blog and sidebars work (between theme settings and pages), I added the sidebar in my page etc …
    But now it’s good! I see the overall functioning
    and 2. I do not know why but I have differences locally where I test compared to the online site … The main thing is that it is the online one that works well!

    I would like to tell you that the subject is resolved :) but in fact I have a problem related to this post https://kriesi.at/support/topic/cpt-ui-acf-with-your-theme/
    the field display issue is fixed – not as ideally as I would have liked but it works.

    Compared to that I have 2 post pages on my site, a classic news and the other for my publications with a display and custom fields.
    This works well except for the sidebars because ideally I would not want the same between the news page and the published page and there is the problem of the default sidebar with the archives etc …

    If you want to see > private access
    in publication page (just one post – my personal loop-index is not on the site yet so no personal fields), I put the navigation widget I want in the page, no choice. But inevitably when I click on the article or a category, I go back to the classic sidebar of the news page

    I do not think that this kind of configuration is planned in your theme because it is not classic.
    Unless I’m wrong?

    unless it is possible with a function with get_post_type (custom post and custom taxonomy) to specify the sidebar to display (in my case the widget with Publi filter name) – and by keeping my sidebar in the post publication page – it would work I think ?

    Or a plugin that could solve this?
    Thanks
    Regards
    Seb

    #1302096
    advteksol
    Participant

    I’m trying to move the checkout form from the top of the page to Your Order and make the coupon code entry (by the credit card info) only available when clicked on. With help from you guys I did it with the following code:

    Initially hide the forms with this css code:
    #order_review .form-row-first, #order_review .form-row-last, .woocommerce-form-coupon-toggle + p {
    display: none;
    }

    And use this script in the functions.php file to toggle their visibility when the showcoupon link is clicked.:
    // a custom script
    function ava_custom_script_mod() {
    if ( wp_script_is( ‘avia-default’, ‘registered’ ) ) {
    wp_add_inline_script( ‘avia-default’, ‘
    (function($) {
    $(“.showcoupon”).on(“click”, function() {
    $(“#order_review .form-row-first, #order_review .form-row-last, .woocommerce-form-coupon-toggle + p”).toggle();
    });
    })(jQuery);
    ‘);
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘ava_custom_script_mod’, 9999);

    This works well for doing all that, but it causes the Expiration Date and CVC code boxes to be hidden/removed from the credit card section (unless you click the “Click here to enter your coupon code” and unhide the Apply Coupon. How can I fix it so those fields remain no matter if the coupon code option is showing or not.

    Thanks in advance for your help.

    #1301873

    Hi,

    Thank you for following up.

    You should add the css code in the Quick CSS field, not in the tab section section’s custom css class name or ID field. We moved the code from those fields to the Quick CSS field and adjusted the maximum height. We also applied a unique ID (individualisierung-custom-table) to the tab section element.

    This is the css code.

    #top #individualisierung-custom-table .avia-table.avia-builder-el-first {
      margin-top: 50px;
      margin-bottom: 50px;
    }
    
    #top #individualisierung-custom-table.tabcontainer {
      max-height: 500px;
    }
    
    #top #individualisierung-custom-table .avia-table.avia-builder-el-first {
      margin-top: 30px;
    }
    

    Best regards,
    Ismael

    Remark: It also seems like this started happening after editing ‘postslider.php’, for showing advanced custom fields. (this may be also a reason for the issue)

    #1301531

    Hi,

    Would you like to display the custom fields in the single post page (see private field)? If yes, then you have to edit the includes > loop-index.php file and use ACF’s get_field function to get the value of the custom field and render it to the page. For example, in the loop-index.php file, look for this code around line

     // echo the post content
                if ( $blog_style == 'bloglist-excerpt')
    			{
                    the_excerpt();
                    echo '<div class="read-more-link"><a href="' . get_permalink() . '" class="more-link">' . __( 'Read more', 'avia_framework' ) . '<span class="more-link-arrow"></span></a></div>';
                }
    

    Above that code, add this one.

    
    $publi_revue = get_field( "publi_revue" );
    echo '<div class="av-publi-revue">' . $publi_revue . '</div>';
    

    This should render the value of the Revue field above the post content, inside a container with the class name av-publi-revue.

    Best regards,
    Ismael

    ivpeve
    Participant

    Hi, I want to add a custom field to some pages and then display it next to the title on the frontend and search results. I will be using Meta Box. Which files should I edit and how?
    I believe the search results come from loop-search.php but how to call the custom field for the given post?
    Many thanks!

    #1301418

    Hi,

    Thanks for contacting us!

    Please refer to this post – https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/.
    I think it would be better to make company and company identification number fields optional so those who do not need them can simply leave them empty :)

    Regards,
    Yigit

    #1301101

    Hi mai,

    I believe that you would need to use Advanced Custom Fields or similar plugin for that type of functionality in the backend. This would also require you to change some codes I gave in php.

    Best regards,
    Nikko

    #1301069

    Hi
    I finally reset the dev site and reinstalled everything (I had done too many tests with too many plugins …)
    And I finally have my post displayed but not the custom fields in it (just the title)
    So how do you
    – include these custom fields to see them in the post and
    – customize the display of data in list mode and in post detail.
    Only for publication_post of course.
    Thank you
    Seb

    #1300534
    bcnsites
    Participant

    Hi!,
    I receive correctly in my mailbox 50 form fields in my mailbox from a certain form, except the type “Custom html: add a descripcion”.
    This description helps me to identify groups of form fields. I want receive this html field in my email, like the other input text fields, for better readability and organization of the data of the received mail.

    If I try with the “html” type, I see the title in web page, but I don’t received in the email:
    [av_contact_field label='titolista' type='html' options='' check='' width='' av_uid='av-koqw49qt' sc_version='1.0']
    or
    If I try with the “text” type, but changing to “hidden” I can see tit in the web page, but don’t received in the body of the email.
    [av_contact_field label='titolista' type='hidden' options='' check='' width='' av_uid='av-koqw49qt' sc_version='1.0']

    Any idea about formating the email what I receive, like adding some titles for better readability, please?

    Thanks in advance.

    Joan

    #1300422
    Astaryne
    Participant

    Hello,
    I searched on your forum but I can’t find…
    With CPT UI and ACF no problem, I found tutorials.

    With CPT UI I have
    – 1 post type – Name: Publications / slug: publication_post
    – 1 taxonomy – slug: publi_category

    With ACF I have 6 fields (slugs : publi_annee / publi_auteur / publi_revue / publi_abstract / publi_fichier)

    So I have my Publications Tab, my fields, all is good. I saved a post but the page is displayed it is empty.

    In my child theme, I copy single.php, create single-publication_post.php and replace
    get_template_part( 'includes/loop', 'index' );
    by
    get_template_part( 'publication_post' );
    I read this in tutorial, but it does not work on your theme. So what is the procedure for seeing my custom post already?
    Thanks
    Seb

    #1299871

    In reply to: custom post archive

    Hey w_archer,

    Thank you for the inquiry.

    We cannot find the page containing the “advertisements” post type, so we created a temp page, added the Blog Posts element and selected the Blade Length taxonomy. All of the items that belongs to the selected taxonomy or term display properly in the page. Where can we see the issue?

    To display the ACF fields, you will have to use get_field function and add it directly in the archive.php or in the include > loop-index.php file.

    // https://www.advancedcustomfields.com/resources/get_field/

    Best regards,
    Ismael

    #1299869
    jskindustrial
    Participant

    I added javascript particles.js
    https://vincentgarreau.com/particles.js/
    I downloaded and extract in child theme, i added css code

    /* —- base —- */
    html{
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    canvas{
    display:block;
    vertical-align:bottom;
    }
    /* —- particles.js container —- */
    #particles-js {
    position:absolute;
    width: 100%;
    height: 100%;
    background-image: url(”);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    top: 0;
    }

    /* =============================================================================
    HTML5 CSS Reset Minified – Eric Meyer
    ========================================================================== */

    html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
    body{line-height:1}
    article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
    nav ul{list-style:none}
    blockquote,q{quotes:none}
    blockquote:before,blockquote:after,q:before,q:after{content:none}
    a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent;text-decoration:none}
    mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
    del{text-decoration:line-through}
    abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
    table{border-collapse:collapse;border-spacing:0}
    hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
    input,select{vertical-align:middle}
    li{list-style:none}

    /* =============================================================================
    My CSS
    ========================================================================== */

    /* —- base —- */

    html,body{
    width:100%;
    height:100%;
    background:#111;
    }

    html{
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    body{
    font:normal 75% Arial, Helvetica, sans-serif;
    }

    canvas{
    display:block;
    vertical-align:bottom;
    }

    /* —- stats.js —- */

    .count-particles{
    background: #000022;
    position: absolute;
    top: 48px;
    left: 0;
    width: 80px;
    color: #13E8E9;
    font-size: .8em;
    text-align: left;
    text-indent: 4px;
    line-height: 14px;
    padding-bottom: 2px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    }

    .js-count-particles{
    font-size: 1.1em;
    }

    #stats,
    .count-particles{
    -webkit-user-select: none;
    margin-top: 5px;
    margin-left: 5px;
    }

    #stats{
    border-radius: 3px 3px 0 0;
    overflow: hidden;
    }

    .count-particles{
    border-radius: 0 0 3px 3px;
    }

    /* —- particles.js container —- */

    #particles-js{
    width: 100%;
    height: 100%;
    background-color: #b61924;
    background-image: url(”);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    }
    i added js code in app.js

    “particles”: {
    “number”: {
    “value”: 80,
    “density”: {
    “enable”: true,
    “value_area”: 800
    }
    },
    “color”: {
    “value”: “#ffffff”
    },
    “shape”: {
    “type”: “circle”,
    “stroke”: {
    “width”: 0,
    “color”: “#000000”
    },
    “polygon”: {
    “nb_sides”: 5
    },
    “image”: {
    “src”: “img/github.svg”,
    “width”: 100,
    “height”: 100
    }
    },
    “opacity”: {
    “value”: 0.5,
    “random”: false,
    “anim”: {
    “enable”: false,
    “speed”: 1,
    “opacity_min”: 0.1,
    “sync”: false
    }
    },
    “size”: {
    “value”: 5,
    “random”: true,
    “anim”: {
    “enable”: false,
    “speed”: 40,
    “size_min”: 0.1,
    “sync”: false
    }
    },
    “line_linked”: {
    “enable”: true,
    “distance”: 150,
    “color”: “#ffffff”,
    “opacity”: 0.4,
    “width”: 1
    },
    “move”: {
    “enable”: true,
    “speed”: 6,
    “direction”: “none”,
    “random”: false,
    “straight”: false,
    “out_mode”: “out”,
    “attract”: {
    “enable”: false,
    “rotateX”: 600,
    “rotateY”: 1200
    }
    }
    },
    “interactivity”: {
    “detect_on”: “canvas”,
    “events”: {
    “onhover”: {
    “enable”: true,
    “mode”: “repulse”
    },
    “onclick”: {
    “enable”: true,
    “mode”: “push”
    },
    “resize”: true
    },
    “modes”: {
    “grab”: {
    “distance”: 400,
    “line_linked”: {
    “opacity”: 1
    }
    },
    “bubble”: {
    “distance”: 400,
    “size”: 40,
    “duration”: 2,
    “opacity”: 8,
    “speed”: 3
    },
    “repulse”: {
    “distance”: 200
    },
    “push”: {
    “particles_nb”: 4
    },
    “remove”: {
    “particles_nb”: 2
    }
    }
    },
    “retina_detect”: true,
    “config_demo”: {
    “hide_card”: false,
    “background_color”: “#b61924”,
    “background_image”: “”,
    “background_position”: “50% 50%”,
    “background_repeat”: “no-repeat”,
    “background_size”: “cover”
    }
    i added code in function.php
    function enfold_customization_custom_js() {
    ?>
    <script type = “text/javascript” src = “http://test.jskindustrial.com/wp-content/themes/enfold-child/particles.js-master/particles.js-master/particles.js”></script&gt;
    <script type = “text/javascript” src = “http://test.jskindustrial.com/wp-content/themes/enfold-child/particles.js-master/app.js”></script&gt;
    <?php
    }
    add_action( ‘wp_footer’, ‘enfold_customization_custom_js’ );
    but it show nothing in output

    #1299861

    Topic: Google Maps Customized

    in forum Enfold
    Steve Webgecko
    Participant

    Hi Kriesi Team.

    How can I customize the Google Map in ENFOLD?
    I need CSS adjustments for streets and fields. I tried with /Styling / Color Saturation / Muted Colors
    but I don’t get the needed result.

    and I need also Restaurants and Shops showed as Pins in Google Maps.
    Possible?

    #1299502

    Topic: Display custom field

    in forum Enfold
    smakarate
    Participant

    Hi I have created a custom field on a page but cannot seem to get enfold to display the code output. I have used code block to add a shortcode {{CODEmartialyticsBookingsWidget}} for the custom field but no luck.

    How do you get enfold to display custom fields on a page?

    #1299276

    Topic: custom post archive

    in forum Enfold
    w_archer
    Participant

    hello,

    I have made a custom post type called ‘advertisements’ and used the Blog Post element to display them on my home page. i am having 2 issues.

    1. It will only display three posts, i have made four posts and i have set it to display 15 per page with pagination enabled.

    2. How can i add more information to each post on the archive page? for example it is currently showing name, excerpt, date, and ‘read more’. I want add custom taxonomies or ACF fields so the user doesn’t have to click into it to see what it is.

    I have added login details below for your reference.

    thanks for your help.

    #1298695
    eee_lala
    Participant

    At the time being I maintain about 20 Enfold installations. I really like the theme and use it in general with joy. The clients are happy when everything works and looks like they knew best it would be the best in the first place, they are indifferent about how it was done. As we know it. Their only annoyance is going the get that theme token in a universe they are not common to. But they survive and most thrive.

    And they do not know about the massacre behind the scenes. Because when trying to reach elegant responsiveness I always have to duplicate entries in Enfold, change visibility and create an element massacre. And create pageload. Hurt their chances with google. The alternative would be to deep dive in the screen sizes in css and fiddle with directions and orders. Which I could avoid until now. And I want to keep it that way. When you have to edit something on those pages, there are feelings rising… You realise that you do not want your customers to change something for the better. And this is not good.

    Some days ago I had to change a self made php-injection fed from a database un til then to static content for reasons. 60 pages plus in the first run. Now css handling for that is back with WordPress/Enfold and here the major annoyance starts. It was about coding now. Not just that it did not work smoothly to give a class name in developer settings to the column as – I think – it should: It did not show up until I put the generic name in both(!?) the class name fields and the id field. Whatever, maybe a fallback of some sorts I missed in the change log. In the end it worked, albeit clumsy.

    Then I wanted to start designing and setup a place in the css section of “general styling”, which is my css playground. I realised that it is not just a mess to generally switch two columns in a 3 column design. It did not work for more than 2 hours and I did not know…
    – did I forget to put any “!important” anywhere? It is not self explainatory where it would have to be used and where not to be used after all that time? Why do I do not know that after using Enfold seemingly from the beginning on?
    – why cann’t I control settings that are presented to me as saveable settings with confidence and am unsure where the error lies? Or if there’s any? Or not? Or what?
    – is there a pending bug? Should I go to the forum which is great tbh, but eats away my time?
    – is it something about cacheing inside enfold? Is everything off (minification, combination, whatever) ans will I remember to put it back on after every minute change?

    … and then I realised that this is not what I came to Enfold for.
    I can write you down the css of what I want in a plain file just so. It is not that hard, even fluid design and flexboxes and the media stuff. I just look up what I have to. Then I debug it in a straight manner and then it is done. And it is all in plain sight for me. All in one place. Controllable. I know it’s rules and add mine. In the end I know what I’ve done and I know how and why it works.
    Today for the first time I realised that Enfold, which I love, stands in my way of creating. And it does that too much to further ignore it. I developed habits around Enfold. Regarding responsiveness it was and is the burden to be overcome. But no, Sir. Creating websites and applications today is more than putting margins on headings reliably. In its core it should let me embrace a quick and controllable approach to responsiveness as well, imho.

    I do not feel supported bny Enfold, which I regard as my companion.
    We have come far together, don’t let me down on this, bro.

    Please make responsiveness easier and more versatile. Let it have SOME user friendliness or even some elegance. Let it feel like working with a theme here, instead of working against it.
    I started using enfold, because I did not want to be mainly a coder anymore and was seeking for help. And finding it in Enfold, back when mobile was far from being first.
    Then everything became fluid and flexible and I now want to have a comfortable way of adapting to that and create with it. Badly.
    Responsiveness is so basically needed today that a theme(!) with such a builder(!) should handle that way more elegant.
    The CSS control in the theme is for corrections, not for handwritten code based handling of whole aspects of website deployment.

    The technology is around for long now,
    Please be the Enfold of 2021.

    • This topic was modified 4 years, 8 months ago by eee_lala.
    sky19er
    Participant

    I’m using Enfold for the first time with Elementor as the page-builder and it’s working out pretty well, so far, but I am having a little issue with the forms. Enfold seems to dominate the form styling, so I can’t control the fields and fonts styling through the options provided in the Elementor form widget. I can handle that styling through custom css, but it’d be great if there’s some way I could disable or override that Enfold styling in a way that would let me control the styling via the Elementor widget — any idea how I might handle that? Thanks and let me know if you have any questions. The subscribe form I’m working on can be viewed in the popup and footer of https://westlacommons.wpengine.com/

    #1297170

    Hi,
    Thank you for the login, but I’m not sure why this is occurring, I have tried to recreate this on my server but so far I have not been able to. I see that you are using Variation Swatches for WooCommerce and Advanced Custom Fields together and this makes it complicated to try to recreate. When the filters are used the product description container that holds the image is removed so the page structure is changing. I might be able to inject the image with jQuery as we did a year ago, but we would need to write this for each category, do you plan on using a lot of categories? Does this also need to work for mobile? This might be a bigger job than it looks.

    Best regards,
    Mike

    #1297017
    NicomIT
    Participant

    To meet accessibility requirements I need to avoid the use of placeholder values (remove the “Search” placeholder text). Here is the code that is being flagged:

    <input placeholder="Search" value="" name="s" id="s" type="text">

    I have removed the placeholder text using this code from another post and adding it to the functions.php file:

    // custom script
    add_action( 'wp_footer', 'ava_custom_script' );
    function ava_custom_script() {
    ?>
    <script type="text/javascript">
    (function($) {
    	$('#s').attr('placeholder', '')
    })(jQuery);
    </script>
    <?php
    }

    I left the area for the placeholder text blank. But when I run the accessibility test on the website now, it indicates that a valid label for form fields needs to be provided. This is the code that it references:

    <input placeholder="" value="" name="s" id="s" type="text">

    If someone could help me find where to modify that code and address the form fields label requirement, that would be great. Thanks!

    #1294423

    Topic: Custom Tab ID

    in forum Enfold
    waxingmedia
    Participant

    Hi,
    While I was creating a list of tabs, I made sure to paste the tab name into the “Custom ID Attribute” field as well. However, upon save, the tabs didn’t work. I added “add_theme_support(‘avia_template_builder_custom_tab_toogle_id’);” to my child theme’s functions file but doing that wiped out the Custom ID Attribute fields and they are now all blank. I don’t want to go through and copy and paste the title into that Custom ID Attribute for each one. Is there a function that would automatically take the tabs title and add it to the Custom ID Attribute field? If so, that would be awesome!.

    Thanks in advance!

    Hey markwilliams,
    Thank you for your patience, unfortunately, replacing the ALB content is not as easy is replacing “the_content()” or “get_the_content()” try looking in “\enfold\template-builder.php” on line 76 $content = apply_filters( 'avia_builder_precompile', get_the_content() ); I believe you will find the comments there helpful.
    This sounds like it is similar to the issues that Toolset and Advanced Custom Fields have when trying to replace “the_content()”, there were some older filters specific to these two plugins but I believe the theme files were changed since then, and since this is not what you are trying to do it won’t help.
    The best option is to use the elements and their available options instead of trying to rewrite them as the elements are advancing with new options such as with the “CET” and your edits may cause problems for your site in the future.

    Best regards,
    Mike

    #1291917
    joax
    Participant

    I got a weird situation here.. I got site with Enfold and some custom post type made one with CPT UI one in the theme..

    The Masonry element loads everything in the Posts table.. without filtering it whatsoever.. custom css, ACF fields, posts, pages.. everything

    All the other elements work fine.. I tried uploading a freshly download version of the theme again…

    The weird thing is that it’s a clone of another site on the same server where

    any ideas?

    Hey Ismael,
    first at all thank you very very much for your deep wp-work!
    I tried the snippet and got the problem that there are no input fields, also there seems to be no different checkbox text, its still the german version.
    Also both languages (de_DE, en_GB) seem to be identical.
    Maybe you could be so kind and take another look?
    I copied you the part of the source which contained the form part, the output for both languages is the same.

    Easter regards,
    Phil

    <form action=”http://conwol.mto2.de/en/contact/&#8221; method=”post” class=”avia_ajax_form av-form-labels-visible avia-builder-el-11 el_after_av_hr el_before_av_hr av-custom-form-color av-dark-form ” data-avia-form-id=”1″ data-avia-redirect=” ><fieldset><p class=’av_form_privacy_check av_contact_privacy_check first_form form_element form_fullwidth’ id=’element_avia_1_1′> <input name=”avia_1_1″ class=”input_checkbox is_empty” type=”checkbox” id=”avia_1_1″ value=”true”/><label class=”input_checkbox_label” for=”avia_1_1″>Die Checkbox für die Zustimmung zur Speicherung ist nach DSGVO zwingend. Dieses Formular speichert Ihren Namen, Ihre E-Mail-Adresse sowie den Nachrichtentext, damit wir Ihre Nachricht auswerten können. Weitere Informationen finden Sie auf unserer Seite der Datenschutzbestimmungen. <abbr class=”required” title=”required”>*</abbr></label></p><p class=”form_element “><input type=”hidden” value=”1″ name=”avia_generated_form1″ /><input type=”submit” value=”Send” class=”button” data-sending-label=”Sending”/></p></fieldset></form><div id=”ajaxresponse_1″ class=”ajaxresponse ajaxresponse_1 hidden”></div>
    <div style=’height:20px’ class=’hr hr-invisible avia-builder-el-12 el_after_av_contact el_before_av_textblock ‘><span class=’hr-inner ‘ ><span class=’hr-inner-style’></span></span></div>

    #1291731
    peterolle
    Participant

    Before 4.8.1 if you wanted to show comments in a page using the builder, you had to add the comments with the builder itself.

    I did and everything was fine, but I just noticed after updating that now I have everything twice.

    1- The comments I added using the builder.
    2- The comments are now showing up as default as well.

    I as I have over 50 pages like this, I want to know how can I fix it in a quick way or if I will have to actually edit all the pages and remove the comments from the builder.

    Thanks.

    Hey phil-0071,

    Thank you for the inquiry.

    You should be able to add something like this in the functions.php file to change the text of the checkbox for another language.

    add_action('after_setup_theme', function() {
    	remove_filter( 'avf_sc_contact_form_elements', array( 'av_privacy_class', 'av_privacy_contactform_checkbox'), 10, 2  );
    	add_filter( 'avf_sc_contact_form_elements', 'av_privacy_contactform_checkbox_mod', 10, 2  );
    }, 10);
    
    function av_privacy_contactform_checkbox_mod($fields, $atts) {
    	$content = avia_get_option('privacy_message_contact');
    
    	if(pll_current_language("locale") == "en_GB") {
    		$content = "CUSTOM TEXT FOR ANOTHER LANGUAGE en_GB";
    	}
    
    	if( empty( $content ) )
    	{
    		$content = av_privacy_class::get_default_privacy_message();
    	}
    
    	$fields['av_privacy_agreement'] = array(
    		'label' 	=> $content,
    		'type' 		=> 'checkbox',
    		'options' 	=> '',
    		'check' 	=> 'is_empty',
    		'width' 	=> '',
    		'av_uid' 	=> '',
    		'class'		=> 'av_form_privacy_check av_contact_privacy_check',
    	);
    
    	return $fields ;
    }
    

    This line of code adjusts the content when the active or current language has the locale en_GB.

    if(pll_current_language("locale") == "en_GB") {
    		$content = "CUSTOM TEXT FOR ANOTHER LANGUAGE";
    	}
    

    Adjust it as necessary.

    Best regards,
    Ismael

    #1291641

    Hi,

    Thank you for the update.

    The layout builder breaks when the scripts are added because of the script tag itself, or the input fields inside if there are any. You may need to refrain from adding or embedding the script directly in the builder and create a custom shortcode for it instead.

    // https://codex.wordpress.org/Shortcode_API

    Related thread: https://kriesi.at/support/topic/shopify-buy-now-button-javascript-code-integration-problem/#post-1277117

    Best regards,
    Ismael

Viewing 30 results - 301 through 330 (of 1,622 total)