Viewing 30 results - 361 through 390 (of 1,622 total)
  • Author
    Search Results
  • #1272010

    Hey Lory1508,

    There is nothing like that in the theme by default unfortunately, but I think you could use the Advanced Custom Fields plugin, or similar plugin, for that purpose.

    Best regards,
    Rikard

    #1271228

    Thanks – then I have to find out how to use these advanced custom fields and how they will show in the template. Sounds like I have to add code to the template though

    #1271008

    Hey Michelle,

    There is nothing like that in the theme by default unfortunately, but you should be able to implement it using a plugin like Advanced Custom Fields, or a similar plugin.

    Best regards,
    Rikard

    #1270957

    Topic: New Custom Post Types

    in forum Enfold
    bucksharp
    Participant

    I tried putting this in my child theme’s functions.php, and it’s not throwing any errors, but it breaks the media library. Any ideas of how I could create a custom post type?

    <!-- new post type = Proud Bulldog Business -->
    <?php
    /*
    * Creating a function to create our CPT
    */
     
    function custom_post_type() {
     
    // Set UI labels for Custom Post Type
        $labels = array(
            'name'                => _x( 'Bulldog Businesses', 'Post Type General Name', 'twentytwenty' ),
            'singular_name'       => _x( 'Bulldog Business', 'Post Type Singular Name', 'twentytwenty' ),
            'menu_name'           => __( 'Bulldog Businesses', 'twentytwenty' ),
            'parent_item_colon'   => __( 'Parent Business', 'twentytwenty' ),
            'all_items'           => __( 'All Businesses', 'twentytwenty' ),
            'view_item'           => __( 'View Business', 'twentytwenty' ),
            'add_new_item'        => __( 'Add New Business', 'twentytwenty' ),
            'add_new'             => __( 'Add New', 'twentytwenty' ),
            'edit_item'           => __( 'Edit Business', 'twentytwenty' ),
            'update_item'         => __( 'Update Business', 'twentytwenty' ),
            'search_items'        => __( 'Search Business', 'twentytwenty' ),
            'not_found'           => __( 'Not Found', 'twentytwenty' ),
            'not_found_in_trash'  => __( 'Not found in Trash', 'twentytwenty' ),
        );
         
    // Set other options for Custom Post Type
         
        $args = array(
            'label'               => __( 'businesses', 'twentytwenty' ),
            'description'         => __( 'Proud Bulldog Businesses', 'twentytwenty' ),
            'labels'              => $labels,
            // Features this CPT supports in Post Editor
            'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ),
            // You can associate this CPT with a taxonomy or custom taxonomy. 
            'taxonomies'          => array( 'genres' ),
            /* A hierarchical CPT is like Pages and can have
            * Parent and child items. A non-hierarchical CPT
            * is like Posts.
            */ 
            'hierarchical'        => false,
            'public'              => true,
            'show_ui'             => true,
            'show_in_menu'        => true,
            'show_in_nav_menus'   => true,
            'show_in_admin_bar'   => true,
            'menu_position'       => 5,
            'can_export'          => true,
            'has_archive'         => true,
            'exclude_from_search' => false,
            'publicly_queryable'  => true,
            'capability_type'     => 'post',
            'show_in_rest' => true,
     
        );
         
        // Registering your Custom Post Type
        register_post_type( 'businesses', $args );
     
    }
     
    /* Hook into the 'init' action so that the function
    * Containing our post type registration is not 
    * unnecessarily executed. 
    */
     
    add_action( 'init', 'custom_post_type', 0 );
    ?>
    #1270922
    bucksharp
    Participant

    I’m trying to build an archive of posts build using Advanced Custom Fields that is searchable by at least two of those fields. For this example, the posts are for individual businesses and I want to be able to search the archive by industry and by location. Is there a way to do that or should I build something from scratch?

    #1269844

    Hi,

    Thank you for the info.

    The snippet breaks the layout of the builder because it contains form fields or input tags. You may need to create a custom shortcode for the snippet so that the input fields do not have to be inserted directly in the code block element.

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

    Best regards,
    Ismael

    #1269833

    Hey DimitriMTM,
    Thank you for the login and test page, I cloned your element and removed the HTML from the title fields. I also added a custom ID to the element test_icon_grid
    To add a background color to the titles, as your inline HTML would have created:

    #test_icon_grid .av_icongrid_title {
    	background-color: #ffc000;
    	color: #ffff03;
    }

    To remove the animation and just display the txt:

    #test_icon_grid li .avia-icongrid-flipback,#test_icon_grid li .avia-icongrid-front {
    	transition: none !important;
    }

    I added this to your test page via a code block element, please clear your browser cache and check.

    Best regards,
    Mike

    #1268451
    dadoblu_2000
    Participant

    Hi guys from the Staff, I’m losing hope, but I think it’s the fault of my lack of experience, I need to add the shadow to a special title so that it is more visible, I use the css modification present in the advanced section of the special title but not it works, I insert in the id field I insert (#shadow) and in the personal css field (.shadow .av-special-heading-tag {text-shadow: 0px 0px 5px black! important;}) the round brackets I used to delimit the fields I wrote on this post.
    I hope you can give me a solution thanks and good luck.

    #1268408

    In reply to: Partner Logo On Mobile

    Hi,

    I fixed 1 error in Quick CSS field and 4 errors in Appearance > Customize > Additional CSS fields. CSS errors break CSS code and cause issues. As I mentioned before, please ask the person who is adjusting CSS to check their code on http://csslint.net/ for errors as most of the back and forth here is caused by those CSS errors :)

    Fixing CSS helped with socket issue. For 3rd column of footer, I added following code to bottom of Quick CSS field

    @media only screen and (max-width: 1014px) and (min-width: 769px) {
    #footer div .av_one_fourth:not(.first) {
        margin-left: 4%;
    }
    #footer div .av_one_fourth:nth-child(3) {
        width: 26.5%;
    }
    }
    

    Please review your website!

    Best regards,
    Yigit

    Hi,


    @laurent
    : You do not have to use the conversion plugin for that snippet. Please try to add the snippet as is without using the placeholders for the less and greater than symbols.


    @cz
    : It is probably not working because of the textarea or the input fields. You may need to create a custom shortcode for the form or the input fields so that you do not have to embed them directly in the code block. Please check the shortcode API on how to create custom shortcodes.

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

    Best regards,
    Ismael

    Hi, can someone (a developer, maybe from Team Kriesi.at) cast their eyes over a modified custom shortcode – https://github.com/raspberryrippl3/enfold-shortcode-post-types-custom-fields

    It’s built to pull a custom post type with an ACF field into a testimonial slider.

    I want to make sure i’ve done it right and not missed anything that might trip up ALB. Any suggestions for improvements more than welcomed

    #1264693

    Rikard, you can check on that page: https://c-serp.fr/clients-references/service-seo-strategie-de-contenus-blog-vacance-enfant/
    I declared in the Custom css Class of the first text block: “rv-h1-portfolio”
    And in the quick css, I wrote:

    #rv-h1-portfolio h1 {
       font-size:50px; 
       text-align:left; 
       color:#a81010; 
       text-shadow:1px 1px 2px white;
    }

    Obviously that doesn’t work.

    An ID should be unique for a single page, but a class can be used many times.

    Ok, so I undesrtand that these 2 fields do the same job, except that the Custom ID is unique to a page, portfolio or a post and that the Custom css class can be shared among many pages, portfolios or posts, am I right?

    #1263902

    Hi jeiceta,

    I think the reason why it’s returning an array is because the Return Format of the image field is Image Array (which is set by default) and the code you used is for Image ID as written in the ACF documentation: https://www.advancedcustomfields.com/resources/image/

    Best regards,
    Nikko

    #1263687
    Kingu_PL
    Participant

    I have the same contact form from Enfold editor on a few subsites, but only on one site it does not work. No “message sent”, no e-mail sent, nothing. And only this site has the 403 error (PageSpeed). In the past few years it worked properly.

    All plugins were disabled one by one and the form was tested after disabling each one (except for Advanced Custom Fields PRO because after turning it off, the page does not load at all).

    Only this site has the AMP version. The link has been removed from the Advanced Custom Field to check if it is the reason. But it does not change anything.

    Several “WordPress people” tried without success to find the cause.

    #1262373

    Hey,

    Please do not create duplicated threads and please ask a question per thread so it does not get confusing :)

    1- I replied here – https://kriesi.at/support/topic/partner-logo-on-mobile/

    2- Please add following code to Quick CSS

    #top .avia-logo-element-container .slide-entry {
        display: block;
        width: left;
    }
    #top.page-id-16071 .avia-content-slider-inner {
        height: auto !important;
    }

    You have following code in both Customize > Additional CSS and Quick CSS fields

    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all .slide-entry {
        margin-left: 0 !important;
        width: 100% !important;
        clear: none !important;
        margin-top: -45px !important;
        margin-bottom: -5px !important;
      }
    }
    
    @media only screen and (max-width: 464px) {
      .responsive #top #wrap_all .slide-entry {
        margin-left: 0 !important;
        width: 100% !important;
        clear: none !important;
        margin-top: -60px !important;
        margin-bottom: -50px !important;
      }
    }

    You may need to adjust your custom CSS.

    3- Please edit your Grid Row element and give it a unique ID (“shadow-cell” in example below) and then add following code to bottom of Quick CSS field and adjust it as needed

    #shadow-cell .flex_cell_inner {
        box-shadow: 10px 10px 10px #888;
    }

    4- Please refer to this post – https://kriesi.at/documentation/enfold/typography/#how-to-upload-custom-fonts and upload it in Enfold theme options. I cannot see Century Gothic font on any browser :)

    Regards,
    Yigit

    #1262163
    jeiceta
    Participant

    Hi. I have added, with Advanced custom fields, 2 fields in the posts. Also, I would like to put the categories.

    I have used this widget

    And this is the result

    I would like it to stay like this

    I go to wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php and above this line >> $output .= $thumbnail ? “{$thumbnail}” : “”; I put this
    $taxonomies = get_object_taxonomies(get_post_type($the_id));
    $output .= “<div class=’categ’>”.$taxonomies.”</div>”;

    But the result that you return to me is

    What have I put wrong?

    In the case of the country and the image of the flag, above this line >> $output .= “<h3 class=’slide-entry-title entry-title’ $markup>“.$title.”</h3>”; I have put

    $pais = get_field (“País”, $entry->ID);
    $output .= “<div class=’pais’>”.$pais.”</div>”;
    $bandera = get_field (“bandera”, $entry->ID);
    $image = get_field(‘Bandera’);
    $size = ‘full’; // (thumbnail, medium, large, full or custom size)
    if( $image ) {
    echo wp_get_attachment_image( $image, $size );};
    $output .= “<div class=’bandera’>”.$Bandera.”</div>”;

    And this is the result

    The ARRAY is of the country and the image is not visible. How should I put it on to make it look good? The country data are from a multi-selection field and the flag data from an image field

    Can you help me find the solution?

    • This topic was modified 5 years, 1 month ago by jeiceta.
    #1261464

    Hi,

    Thank you for the update.

    We may have to add the post ID to the get_field function so that it returns the actual year from each post. Please look for the line where we defined the $year variable and replace it with the following code.

    $year = get_field ("Date", $entry->ID);
    

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

    Best regards,
    Ismael

    #1259335

    Hey gb,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .av-mailchimp-widget #element_avia_3_1,
    .av-mailchimp-widget #element_avia_2_1 {
        display: none;
    }
    

    Well, if you don’t use that data, you can hide those fields.

    If you need further assistance please let us know.

    Best regards,
    Victoria

    I think the original question was
    Since, not all of Enfold users (like me) are php developers, I’d like you to write a guide (or a post on the forum) on how to properly integrate the fantastic plugin Advanced Custom Fields in Enfold templates, since these templates are so many (which is the starter template?)
    as that seemed to be too complicated (
    That would be too complicated as there are almost endless possibilities to integrate custom fields using ACF. However following would be helpful:(….)“)
    the follow-up question was
    Could it be possible to do a tutorial in order to explain all the purpose of Enfold templates one by one (ok, many are common to the main WordPress loop)? Especially the .php ones in the root folder and in the include subfolder…
    at which this was replied:
    That is something which – we might be able to work something out, on our GitHub.
    Maybe not for everything, but for as many as we can.
    I have added it to my TODO List. Cant promise when, but something we can consider.

    And participant marco3253 was asking about the progress of these questions.
    As the feature request form is frozen, I join in on this conversation: any news on either a tutorial on integration of the Advanced Custom Fields plugin in Enfold or a tutorial in order to explain all the purpose of Enfold templates (Especially the .php ones in the root folder and in the include subfolder)?

    thanks in advance,
    Karin

    #1258036

    Hi,

    1- You had following custom CSS code in both Quick CSS and custom CSS fields:

    #header #header_main .container {
        width: 100%;
        max-width: none;
    }

    I removed them. You can simply choose container width in Enfold theme options > General Layout > Dimensions > Maximum Container width

    2&3- Fixing 1 must have fixed these too :)

    4- I added your icons as custom links and hid them on desktop using following code in Quick CSS field

    @media only screen and (min-width: 767px) {
    .only-mobile { display: none !important; }}

    5- Since those are actually customized mega menu titles, they will not look the same without further customization. If this is something really important for you, please consider to hire freelance developer for the task.

    I am sorry but this thread is getting pretty complicated for me to follow. Could we go step by step with your further questions? :)

    Best regards,
    Yigit

    #1257956

    Hi,

    This is the post I referred – https://www.advancedcustomfields.com/resources/shortcode/.

    I tried using Video shortcode in preview and it did not work for me either. I will check with our devs once again. Also, I re-opened – https://kriesi.at/support/topic/video-shortcode-in-ajax-portfolio/ so we can continue there regarding video shortcode issue :)

    Best regards,
    Yigit

    #1257644

    Hey,

    Your code is missing a closing curly bracket. Please change it to following

    /* custom style form fields */
    #top .av-contact-form-color .input-text,
    #top .av-contact-form-color input[type=’text’],
    #top .av-contact-form-color input[type=’input’],
    #top .av-contact-form-color input[type=’password’],
    #top .av-contact-form-color input[type=’email’],
    #top .av-contact-form-color input[type=’number’],
    #top .av-contact-form-color input[type=’url’],
    #top .av-contact-form-color input[type=’tel’],
    #top .av-contact-form-color input[type=’search’],
    #top .av-contact-form-color textarea,
    #top .av-contact-form-color select {
    /* Background color */
    background-color: #F8F8F8!important;
    }

    You can use a website like this one – csslint.net to check your custom CSS for errors :)

    Regards,
    Yigit

    #1257636

    Update:

    I found a problem.

    I added this code to css:

    /* custom style form fields */
    #top .av-contact-form-color .input-text,
    #top .av-contact-form-color input[type=’text’],
    #top .av-contact-form-color input[type=’input’],
    #top .av-contact-form-color input[type=’password’],
    #top .av-contact-form-color input[type=’email’],
    #top .av-contact-form-color input[type=’number’],
    #top .av-contact-form-color input[type=’url’],
    #top .av-contact-form-color input[type=’tel’],
    #top .av-contact-form-color input[type=’search’],
    #top .av-contact-form-color textarea,
    #top .av-contact-form-color select {
    /* Background color */
    background-color: #F8F8F8!important;

    I wanted to change field color in contact form, but definitely something is not good with it.\
    I deleted that code, and everything is ok.

    Now, can you tell me how change color of background in contact form elements (Name, Email and similar)…

    #1257440

    Hey MediaMix1,
    Sorry for the late reply, and thanks for the login, I see from your PDF Print plugin that it is getting the text from the excerpt
    2020-11-01_060438.jpg
    But I believe that you need to set the “Custom Post Fields” for the content to show:
    2020-11-01_060600.jpg
    Than being said, typically plugins have trouble using the Advanced Layout Builder shortcodes to get the content so I’m not sure if this plugin will work correctly, but perhaps it will after it is set up.

    Best regards,
    Mike

    #1257372

    Hey S-edwards,
    Sorry for the very late reply, do you mean that you built this with the Advanced Custom Fields plugin (ACF)?
    Anyways the element looks custom, the gallery image links do not have title attributes and this is what the lightbox needs to show the titles. The counter is automatically populated by the lightbox script by counting all of the images on the page.
    Please try adding the title attributes to your image links.

    Best regards,
    Mike

    #1256333

    In reply to: Shop Modifications

    Hey,

    Thanks for contacting us!

    1- Please add following code to Quick CSS and adjust the width as needed

    .single-product-main-image {
        width: 50%;
    }

    2- You can use a plugin such as this one – https://woocommerce.com/products/private-store-for-woocommerce/

    3- Please add following code to bottom of Functions.php file in Appearance > Editor

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
    remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );

    4- There was a whitespace at the beginning of “product short description” field, I deleted it and now description is right below price. When you remove the price, it will move right under product title :)

    5- See #4. If this was not what you meant, please post a screenshot and show the changes you would like to make. You can upload your screenshots on imgur.com or Dropbox public folder and post the links here.

    6- Please add following code to bottom of Functions.php file

    add_filter( 'woocommerce_is_sold_individually', 'av_remove_quantity_fields', 10, 2 );
    function av_remove_quantity_fields( $return, $product ) {
        return true;
    }

    7- Please use this plugin – https://wordpress.org/plugins/loco-translate/ and edit WooCommerce language files to change the string.

    8- Please add following code to bottom of Quick CSS field

    .shop_table.woocommerce-checkout-review-order-table {
        display: none;
    }

    9- Please see #7

    10- You can use a plugin such as this one – https://wordpress.org/plugins/woo-thank-you-page-nextmove-lite/ or this one – https://woocommerce.com/products/custom-thank-pages/

    Best regards,
    Yigit

    Hi,
    Thank you for the admin login, I created a “customer” account so I could test the login form.
    On your /my-courses/ page the login form tries to submit the form when clicking the input fields, so you can not enter the details.
    I believe this is because you have the Sensei LMS plugin shortcode wrapped in a link:

    [vc_row][vc_column][vc_column_text]<a href="https://academy.harmonicsounds.com/my-courses/">[sensei_user_courses]</a>[/vc_column_text][/vc_column][/vc_row]

    Please try removing the link.
    But if you use the page /my-account-2/ to login everything works correctly, but it is using woocommerce shortcode:

    [woocommerce_my_account]

    I also see that you are using the WPBakery Page Builder plugin, I recommend disabling this builder as it has caused conflicts with the Advanced Layout Builder in the past.

    Best regards,
    Mike

    #1255273

    Hi,

    1&2- I deleted following code from Quick CSS and Custom CSS fields

    #header #header_main .container {
        max-width: 110% !important;
    }

    3- Added following code to bottom of Quick CSS field

    #top #header .avia_mega_div > .sub-menu > li > ul > li a:hover { 
        background-color: #ddd !important;
    } 

    4- It is already on the right edge on my end.
    5- Added following code to bottom of Quick CSS field

    #top .social_bookmarks li {
        border-color: #dddddd;
    }

    Please review your website :)

    Best regards,
    Yigit

    #1254401

    Hi,

    You had so many CSS errors in both Quick CSS field and Customize > Custom CSS fields. I fixed them and now your website looks fine.

    In case you run into similar issues in future, please check your CSS code for any errors using a website such as this one – http://csslint.net/

    Please review your website :)

    Best regards,
    Yigit

    #1254360

    In reply to: Custom CSS not working

    Hi,

    @PearlSmile
    when you add classes to the custom css fields are you adding the “dot” like .class if so please remove the “dot”
    If you are using the Enfold Theme Options > Performance > JS & CSS file merging and compression please disable, this is showing you a “cached” version.
    Otherwise, please open a new thread with an admin login in the Private Content area and an example of what you can not achieve.
    Since this is not your thread posting your login here will not be private and you will not see anything we write in the Private Content area.

    Best regards,
    Mike

Viewing 30 results - 361 through 390 (of 1,622 total)