Viewing 30 results - 1,381 through 1,410 (of 1,622 total)
  • Author
    Search Results
  • tamaranfibeitek
    Participant

    Hi,

    I have a website that is about fitness. I talk about food, exercises and each of these have their own sub posts.
    For example I post a exercise that is for chest but also is good for legs. Do I need to use category or tags. Which way looks better with enfold theme features?
    I will have my menu like:
    Home
    Article
    Exercise>Difficaulty>Begginer
    >>>>>>>>>>>>>>>>Intermidiate
    >>>>>>>>>>>>>>>>Hard
    >>>>>>>Muscle>chest
    >>>>>>>>>>>>>>>>legs
    >>>>>>>>>>>>>>>>etc

    So as you can see under exercise I provided 2 ways for the users to select the exercises. one with the difficulty level (which I heard that I have to use custom fields?how?) and the other way by the muscle involved in the exercise (an exercise can have multiple muscles involved).
    What is the best way to accomplish this.

    Thanks.

    #372904

    Hello Elliot,

    Thank you for this code! Unfortunately, this doesn’t cover the full extent of the problem seen on my site. Simply making the text smaller won’t prevent issues from arising. I am using both the text fields as well as the special heading, so pages have some small header titles and some large. I am trouble shooting using multiple devices and browsers. How can I make sure this responds for both?

    – The testimonials slider smashes the text together making it almost unreadable. The testimonial text itself is also not aligned properly with the rest of the testimonial meta data below. How can I fix this so that
    1) The text is smaller and the area where the text can be shown is wider,
    2) Make the text align center properly with the testimonial meta data
    3) Make the testimonial image center above the meta data instead of floating left.
    4) It appears that the meta data is also missing from the slider testimonials, but only on mobile. I’d like to show the same meta data as it appears on desktop on mobile. I don’t know why this is missing?

    Example 1) http://schneidercentre.com/wp-content/uploads/2014/12/IMG_9181.png
    Example 2) http://schneidercentre.com/wp-content/uploads/2014/12/IMG_9182.png

    -Lastly, some of the short codes have animations, such as the easy slider for images, that cause a lot of crashing on mobile. I can’t solely relate this to the theme or the short codes themselves as mobile browsers aren’t perfect, but the experience on desktop vs mobile isn’t ideally responsive.
    1) How can I prevent the animation on image sliders? It’s really laggy and inconsistent on most mobile devices, commonly causing mobile browsers to crash. Is there a way to turn off the animation for next/previous on easy slider for mobile only? It looks great on desktop but not so effective on mobile.

    -I have ran into some other issues with mobile alignment and font sizes on mobile devices. It seems that many of the short codes aren’t really “responsive” without having to customize the CSS in a away. Is there something wrong with my theme install or my CSS sheet that came with the theme that may be causing a lot of CSS issues from desktop to mobile? I enjoy designing wordpress on the desktop and don’t usually have too many layout or CSS related issues on other themes like the ones noted above. Just looking to confirm that the CSS I’m asking to fix these out of the box issues is actually meant to be this way for elements that come with this theme, for example, the mashed testimonials texts. I don’t understand how that is so distorted if it is supposed to be “responsive” when the short code used in the page builder.

    Thank you for all your help!

    #372673
    senso
    Participant

    Hi team,

    I’ve installed the plugin Types – Custom Fields and Custom Post Types .
    I’ve created several custom post types and taxonomies.

    May I know how to select specific taxonomy to display as post meta infos? Currently, by default, it displays all the taxonomies I created and registered with that custom post type. However, I just want to display a few selective taxonomies.

    I’m not a php developer but I think I have to edit the file loop-index.php somewhere along the lines

     echo "<span class='post-meta-infos'>";
                    $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false));
                    echo "<time class='date-container minor-meta updated' $markup>".get_the_time(get_option('date_format'))."</time>";
                    echo "<span class='text-sep text-sep-date'>/</span>";
    
                        if ( get_comments_number() != "0" || comments_open() ){
    
                        echo "<span class='comment-container minor-meta'>";
                        comments_popup_link(  "0 ".__('Comments','avia_framework'),
                                              "1 ".__('Comment' ,'avia_framework'),
                                              "% ".__('Comments','avia_framework'),'comments-link',
                                              "".__('Comments Disabled','avia_framework'));
                        echo "</span>";
                        echo "<span class='text-sep text-sep-comment'>/</span>";
                        }
    
                        $taxonomies  = get_object_taxonomies(get_post_type($the_id));
                        $cats = '';
                        $excluded_taxonomies =  apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id);
    
                        if(!empty($taxonomies))
                        {
                            foreach($taxonomies as $taxonomy)
                            {
                                if(!in_array($taxonomy, $excluded_taxonomies))
                                {
                                    $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
                                }
                            }
                        }
    

    but can’t get on with the code. May I ask for some help here? Thanks!

    #372142

    Hi!

    1- Please add following code to Quick CSS

    .title_container .breadcrumb {
    font-size: 18px;
    text-transform: uppercase;
    }

    2- Please edit your page and click “Screen Options” on the right top corner and check “Custom Fields” then scroll below your content and make sure that header is set to YES, it could be set to NO currently.

    Regards,
    Yigit

    #372002
    LoremIpsum
    Participant

    First off, I want to complement you on what an amazing theme Enfold is. This is truly a favorite to work with as it is super simple to implement and even easier to customize. Thank you for making some of our lives easier.

    I rarely ask for help as I try to get as much out of the forums as possible. So thank you for creating this amazing resource as well. Super helpful.

    Now, I’ve scoured the web and have yet to find an adequate solution to this issue I am having. I’ll do my best to explain.

    I am trying to insert a pricing table to compare services that are offered. Each button, either standalone or on the table have the same options and offer a manual link you are able to insert. I am trying to call a shortcode with a checkout form in the form of a popup like a fancybox or lightbox. The goal is so that users do not have to go to a new page to checkout, they can do so with a Shortcode with an API connecting to a merchant. When tested on the theme it works without the built in buttons, but when using the built in buttons, the fancybox doesn’t even appear.

    I have tried to reference the form with anchor text (IE putting the div and style parameters in a code block prior to the button/table text).

    Here’s what I put in the code block prior to executing the anchor text:
    <div class=”fancybox-hidden” style=”display: none;”>
    <div id=”fancyboxID-1″ class=”fancyboxID-1″>[FORM]</div>
    </div>

    Then referencing it later like this:
    <span class=”avia_iconbox_title”>Purchase Plan</span>

    The button is already styled so I am only trying to get this code to appear in a fancybox/lightbox button underneath the pricing table.

    I figured since the href=”#fancyboxID-1″, I can insert this into the manual link URL in the button editing fields, but alas it doesn’t work.

    But, a link like this doesn’t work: <span class=”avia_iconbox_title”>Purchase Plan</span>

    It works when you click on the “Purchase Plan” link, but not when I’m referencing #fancyboxID-1 in the manual URL.

    Perhaps there is an easier way to call a shortcode by using the theme’s built in buttons in the table or out, but I’m just not seeing it.

    I was thinking making a new avia button shortcode that has a custom text area to run a script when clicked.

    An alternative may be for a button to run some sort of script when clicked that opens a fancybox/lightbox that opens text or a shortcode. I’m just not sure how to do it.

    Any help would be appreciated. Thank you in advance :)

    #371811
    This reply has been marked as private.
    #369845
    strausberg
    Participant

    We made buttons on our site and entered HTML code in the button fields in the layout editor to customize the font sizes and font weights. The site is chilenobayclub.com. We did updates to the latest versions of WordPress and Enfold, but now, in the back end, the HTML is no longer visible in the button fields, even though the formatting we originally input is showing on the site.

    The caches have been cleared.

    Screenshots: https://www.dropbox.com/sh/x1a11ty1r4q1b6c/AAAAj_d6tbLsHENL7gw0Hj4wa?dl=0

    Thanks,
    Paul

    #368732

    In reply to: RTL Comment form

    Hi Yud!

    The theme doesn’t handle that but try the following:
    http://www.wpbeginner.com/plugins/how-to-add-custom-fields-to-comments-form-in-wordpress/

    Cheers!
    Josue

    #368669
    Justin
    Participant

    Hey guys,
    I created a custom class ‘home’.
    I am trying to align the submit button to the right of the 3rd field…EMAIL. So it all falls on one line.
    Yet something is missing. Any direction would help thanks!

    #367731

    Hi serverlift!

    Thanks for using Enfold.

    When you select a custom sidebar for your page and save then that sidebar gets saved in the posts custom fields. If the widget area is deleted then it will stop displaying in the sidebar completely and it will use the default sidebar setting. For example if you have some widgets set to the “Sidebar Pages” widget area and then you delete your custom widget area that a page is using then it will default to the “Sidebar Pages” widget area instead.

    I don’t know of a way to find all pages that are using a specific widget area. You would have to check them manually I think.

    Cheers!
    Elliott

    #367209
    alexanderduenchem
    Participant

    Howdy folks,

    first of all: Awesome, very customizable Theme!!! Its getting better and better with every new version.

    However i miss some nice and smooth CSS animations/transitions this is why i got some questions:

    – I’m a beginner in CSS and so I´d like to know if there`s any possibility to add and define my own keyframes. The theme itself uses some keyframes too i think – isnt it possible to use those keyframes for any other element?
    Lets say I added the Custom CSS fields to all elements and now want to animate an icon or whatever. Can you give an example?

    -Where can I see, which keyframes you defined and how do I use them? Can you give an example?

    – Is it possible to add things like this? http://daneden.github.io/animate.css/ and if so, is it necessary to add jQuery to not to start the animation until the section where it should happen is visible?

    – I’m beginning to learn jQuery too.. Which theme file do i have to change to add or change some jQuery?

    Thanks for your help.

    Alex

    #365956
    darneson
    Participant

    Hi there,
    I’m building a website for a real estate/property development companz and would like to use the custom fields in portfolio items. I want to use it on the detail portfolio page aswell as on the “Post Slider” for Portfolio items. Please let me know if this is somehow possible.

    I want to achive a similar result as on the following pages.
    For Portfolio Detail Page: http://demo.themetrail.com/realty/property/lush-villa/ (scroll to: Features)
    Page with Post Slider: http://demo.themetrail.com/realty/ (features underneath the estate/property pictures)

    Looking forward to your reply.
    Best,

    Darneson

    #365372

    Hi
    Well Ive kind of figured it out.
    I installed plug in “Get Custom Field Value”, and then in file includes/loop-index.php I added:
    /* DJR++ */
    echo c2c_get_custom(‘location’, ‘Location: ‘).”<br/>”;
    echo c2c_get_custom(‘contact_number’, ‘Contact Number: ‘).”<br/>”;
    echo c2c_get_custom(‘cost’, ‘Cost: $’).”<br/>”;
    /* DJR– */

    This shows me these extra fields in my blog_post control.
    However, I prefer the layout of the “magazine” control.
    Where do i find the php file that controls this so i can add the code in there?
    I think it should be /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine.php
    but when i rename/remove this file the magazine control still shows my posts!!!
    Thanks
    Darren

    #364413

    Hey alvinhy!

    Thank you for using Enfold.

    You can find the loop inside the public function html of the postslider.php file. Instead of the do_shortcode function, maybe you should use the get_post_meta function if the plugin supports custom fields. I’m sorry but we don’t provide support for third party plugins as stated on our support policy. Please contact the plugin author.

    Regards,
    Ismael

    #364354

    Hi
    So after using Advanced Custom Fields and linking to these in Gravity Forms, the user can submit all the post fields on the front end form which creates a new Form entry and a new POST.
    I want to read all the details from the POST and show on screen.
    This MUST be possible otherwise there would be no point in Gravity Forms allowing you to fill these custom fields if you cant read the details from them.
    Can somebody please tell me how to show all the fields from the post on a page one after the other like in blog_posts control.
    Thanks
    Darren

    • This reply was modified 11 years, 1 month ago by darrenrhymer.
    #363595
    biekhois
    Participant

    Hi,

    I want to use the Team Member element on a dynamic way. Or any other element of course. Let me explain:
    – I have a network of people, around the 65 people.
    – These people are Users in WordPress, with a specific role (ie “network partner”)
    – I added custom fields (like LinkedIn, image) with Users (I extended the Users)
    – I created taxonomy (“Skills”) and created relationship between Users and Skills

    There’s another way of course:
    – Create new Post Type, ie “Network Partners” with “Network Partner”
    – Create new Taxnonomy, ie “Skills”

    Now I want to display all inserted “Network Partners” in a neat way, a bit like the Team Member element, or the Portfolio Grid. Any ideas, links to blogposts? I don’t want to create a seperate page template like on http://css-tricks.com/creating-meet-team-page-wordpress/ because I want to integrate the list of people on parts of existing pages.

    • This topic was modified 11 years, 1 month ago by biekhois. Reason: typo in title
    #363277

    Hi youtea!

    Try adding this to your custom CSS.

    #element_avia_name_1 > input {
        width: 50% !important;
    }
    #element_avia_name_1 > label {
        display: inline-block !important;
    }

    That’s for the name field. If you want to do it to the email or other fields then switch the ID out to this.

    #element_avia_e-mail_1
    #element_avia_subject_1
    #element_avia_message_1

    Regards,
    Elliott

    #362839
    darrenrhymer
    Participant

    Hi

    I’m using Gravity forms to create custom fields that can be completed by the user on the front end.
    Does anybody know how I can read the form submissions and show them as a Enfold blog_post on a page?

    Thanks

    Darren

    #360530

    Topic: Custom Menu items

    in forum Enfold
    #360245
    funzool
    Participant

    Hi,

    My Google Map and Contact Form is not appearing:

    • Google Map appears well as widget, but not as media element. It just shows blank.
    • Contact Form fields doesn’t appear at all.

    I’ve read some replies that i have to upgrade to 3.04. The issue is, currently i’ve already customized all the pages (posts/pages layout) to suit my needs. Will it affect the upgrade? Can you help to recommend the solution?

    Thank you.

    • This topic was modified 11 years, 1 month ago by funzool.
    #359840

    Hi Elliott.

    the page is http://www.cxgroup.co/?page_id=1195 …on the bottom you see grey icons. I wanted to remove the grey background but still keep the circle shape (white). So replace the grey with transparent really.

    I tried enabling custom classes, I can see the fields appearing. I entered your code as well under the custom class name, but don’t see changes… thx

    alamedawaterpolo
    Participant

    Hi there,

    I Use WooCommerce and various other associated plugins, however I recent;y have been unable to edit, view, or add categories or tags from the product screen.

    Has anyone else seen this issue?
    //Joel//

    Enfold 3.0.2

    WC Version: 2.2.8
    WC Database Version: 2.2.8
    WP Version: 4.0.1
    WP Multisite Enabled: No
    Web Server Info: Apache
    PHP Version: 5.5.17
    MySQL Version: 5.5.32
    WP Active Plugins: 45
    WP Memory Limit: 128 MB
    WP Max Upload Size: 100 MB
    PHP Post Max Size: 100 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 2000
    SUHOSIN Installed: No
    SOAP Client: Your server has the SOAP Client class enabled.

    Advanced Custom Fields by Elliot Condon version 4.3.9,
    Akismet by Automattic version 3.0.3,
    The Events Calendar PRO by Modern Tribe, Inc. version 3.7,
    Game Locations by Mark O’Donnell version 1.3,
    MailChimp for WordPress Lite by Danny van Kooten version 2.1.6,
    MiwoFTP by Miwisoft LLC version 1.0.3,
    P3 (Plugin Performance Profiler) by GoDaddy.com version 1.5.3.1,
    Simply Instagram by Rolly G. Bueno Jr. version 1.2.6,
    The Events Calendar Category Colors by Andy Fragen, Barry Hughes version 3.9.1,
    The Events Calendar by Modern Tribe, Inc. version 3.8.1,
    Theme My Login by Jeff Farthing version 6.3.10,
    Twitter Widget by Sean Spalding version 1.0.4,
    UpdraftPlus – Backup/Restore by UpdraftPlus.Com, DavidAnderson version 1.9.31.1,
    Visser Labs Updater by Visser Labs version 1.1,
    Woo Deposits Payment Recipes by Webatix version 1.0.1,
    WooCommerce Admin Bar Addition by David Decker – DECKERWEB version 2.7.0,
    WooCommerce Checkout Field Editor by WooThemes / Mike Jolley / Patrick Garman version 1.2.6,
    WooCommerce Custom Price by Azh Setiawan version 0.2.2,
    WooCommerce Customer/Order CSV Export by SkyVerge version 3.7.0,
    WooCommerce Customizer by SkyVerge version 2.0.1,
    WooCommerce Debug Bar by Coen Jacobs version 0.1,
    WooCommerce Direct Checkout by Terry Tsang version 1.0.9,
    WooCommerce – Store Exporter Deluxe by Visser Labs version 1.8.6,
    WooCommerce Google Analytics Integration by WooThemes version 1.3.0,
    WooCommerce MailChimp Subscribe by John Turner version 1.0.5,
    WooCommerce MailChimp by Adam Anderly version 1.3.2,
    Woo Deposits by Webatix version 1.0.4,
    WooCommerce Product Add-ons by WooThemes version 2.6.7,
    WooCommerce Product CSS3 Tags by Terry Tsang version 1.0.4,
    WooCommerce Quick Export Plugin by MB Création version 2.0,
    WooCommerce – Store Toolkit by Visser Labs version 1.4.6,
    WooCommerce Terms & Conditions Popup by Patrick Rauland version 1.0.1,
    WooCommerce by WooThemes version 2.2.8,
    WooThemes Helper by WooThemes version 1.3.0,
    The Events Calendar: WooCommerce Tickets by Modern Tribe, Inc. version 3.7,
    Wordfence Security by Wordfence version 5.3.3,
    WordPress SEO by Team Yoast version 1.7.1,
    WP-Memory-Usage by Alex Rabe version 1.2.2,
    WP-Options by Norman Stanke version 0.7,
    WP Instagram Images Widget by Eduardo Stuart version 2.0.3,
    Yelp Reviews Ticker by Flavio Domeneck Jr version 2.1,
    Yelp Widget Pro by Devin Walker version 1.4.1

    Hey!

    You don’t need to replace the order parameters.

    function custom_post_grid_query( $query, $params ) {
        $query['orderby'] = 'meta_value_num';
        $query['order'] = 'DESC';
        return $query;
    }
    add_filter( 'avia_post_grid_query', 'custom_post_grid_query', 10, 2);

    Please apply custom fields with different value(example: $ 9.99, $ 8.99 and $ 7.77) on 3 posts then test it. Change DESC to ASC or vice versa.

    Best regards,
    Ismael

    deved
    Participant

    Hi Guys,

    I’m using your fantastic Enfold theme. I encountered only a little problem: I need to use ACF (advanced custom fields), but the ACF “google map” field type doesn’t work with Enfold. I did some search and found that the problem could be the google map api script inclusion (http://maps.google.com/maps/api/js?sensor=false&#8230;) in the admin. I found that Enfold includes this script enqueuing “avia-google-maps-api” script. I tried to remove the script inclusion adding this code to my child theme:

    function remove_scripts()
    {
    	wp_deregister_script( 'avia-google-maps-api' );
    }
    add_action( 'wp_enqueue_scripts', 'remove_scripts', 100 );

    but it doesn’t work. Do you have any idea to solve this problem? I would like to use ACF to add a store locator to my app, and I need the “google map” field to geolocate the input address.

    Thank you very much for your help!

    Hi Eliott, I tried that but when I try to load a custom post, I get an error:
    Parse error: syntax error, unexpected ‘}’ in /home/content/34/11243234/html/wp-content/themes/enfold-child/functions.php on line 68

    Here’s the code I pasted in (‘spicypresentations’ is the slug of my custom post) and line 68 is the last line:
    add_filter(‘avf_logo’,’new_logo_url’);
    function new_logo_url($use_image){
    if(is_singular(‘spicypresentations’)) {
    $use_image = “http://nutsandboltsspeedtraining.com/wp-content/uploads/2014/11/sp-logo-rough.png&#8221;;
    }
    return $use_image;
    }

    If it helps, here’s my site: http://www.nutsandboltsspeedtraining.com

    In case it helps, here are the other things I’ve put in the functions.php or my child theme:
    <?php

    @ini_set(‘display_errors’, 0);

    add_action(‘woocommerce_thankyou’, ‘affiliate_tracking’);

    function affiliate_tracking( $order_id )
    {
    global $wpdb;

    $order = new WC_Order( $order_id );
    $order_total = $order->get_order_total();
    $shipping = $order->order_shipping;
    $total = $order_total – $shipping;
    $coupon = $wpdb->get_var($wpdb->prepare(“SELECT order_item_name FROM wp_woocommerce_order_items where order_id = ‘$order_id’ and order_item_type = ‘coupon'”));

    echo ““;
    }

    // Hook in
    add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );

    // Our hooked in function – $fields is passed via the filter!
    function custom_override_checkout_fields( $fields )
    {
    $fields[‘billing’][‘billing_email’][‘label’] = ‘Email (will also be used as your username)’;
    $fields[‘account’][‘billing_email’] = $fields[‘billing’][‘billing_email’];
    $fields[‘account’] = array_reverse($fields[‘account’]);
    unset($fields[‘billing’][‘billing_email’]);
    unset($fields[‘order’][‘order_comments’]);
    $fields[‘billing’][‘billing_company’][‘required’] = false;
    $fields[‘billing’][‘billing_phone’][‘required’] = false;
    return $fields;
    }

    add_filter (‘add_to_cart_redirect’, ‘woo_redirect_to_checkout’);

    function woo_redirect_to_checkout() {
    global $woocommerce;
    $checkout_url = $woocommerce->cart->get_checkout_url();
    return $checkout_url;
    }

    add_filter(‘avf_blog_style’,’avia_change_archive_blog_layout’, 10, 2);
    function avia_change_archive_blog_layout($layout, $context){
    if($context == ‘archive’) $layout = ‘single-big’;
    return $layout;
    }

    add_filter( ‘post-format-standard’, ‘avia_category_content_filter’, 15, 1);
    function avia_category_content_filter($current_post)
    {
    if(!is_single())
    {
    $current_post[‘content’] = get_the_excerpt();
    $current_post[‘content’] .= ‘<div class=”read-more-link”>‘.__(‘Read more’,’avia_framework’).'<span class=”more-link-arrow”> →</span></div>’;
    }
    return $current_post;
    }

    add_filter(‘avf_logo’,’new_logo_url’);
    function new_logo_url($use_image){
    if(is_singular(‘spicypresentations’)) {
    $use_image = “http://nutsandboltsspeedtraining.com/wp-content/uploads/2014/11/sp-logo-rough.png&#8221;;
    }
    return $use_image;
    }

    Thanks,
    Camille

    #358182

    +1
    Same problem here. I thought this could be due to the manipulation of custom css, but looking deep into the html I can see that there are no form fields at all (I mean they are not hidden, they are just absent).

    Hey!

    Alright. On portfolio.php, replace the code with this:

    $output .= '<header class="entry-content-header">';
                            $output .= "<h3 class='grid-entry-title entry-title' $markup><a href='{$title_link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";
    						$estate_price = get_post_meta( $the_id, 'estate_price', true );
    						$output .= "<span class='estate_price'>{$estate_price}</span>";
                            $output .= '</header>';		

    On functions.php, replace the order parameter with this:

    function custom_post_grid_query( $query, $params ) {
        $query['orderby'] = 'meta_value_num';
        $query['order'] = 'DESC';
        return $query;
    }
    add_filter( 'avia_post_grid_query', 'custom_post_grid_query', 10, 2);

    Create a custom field on the portfolio items called estate_price then enter a price value like $ 9.99. I know the custom fields is not a beautiful solution but it works. If you want something more sophisticated that this one, you might need to hire a freelance developer.

    Regards,
    Ismael

    Sorry but I do not read everything considering I had to copy the same path as in the original folders of the theme.

    By cons, if we simply returns the fact to sort items in portfolio price range with custom fields, it does not work.

    It’s mostly what I need at the base.

    I also removed the “Add new or replace Advanced Layout Builder Elements from Child Theme” to be sure it does not create conflict.

    So here’s what’s in my functions.php file in the child theme:

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    
    /*
     * add option to edit elements via css class
     */
    // add_theme_support('avia_template_builder_custom_css');
    
    // enable custom fields for Portfolio items
    add_filter('avf_portfolio_cpt_args', 'avf_portfolio_add_custom_fields', 1);
    function avf_portfolio_add_custom_fields($args) {
    $args['supports'] = array('title','thumbnail','excerpt','editor','comments', 'custom-fields');
    return $args;
    }
    
    // alter the portfolio grid order
    function custom_post_grid_query( $query, $params ) {
        $query['orderby'] = 'meta_value';
        $query['order'] = 'DESC';
        $query['meta_query'] = array(array('key' => 'custom_price'));
        return $query;
    }
    add_filter( 'avia_post_grid_query', 'custom_post_grid_query', 10, 2);
    
    

    Thank you.

    PS – The extension “WPML” can there be a conflict?

    #357249
    thesebogroup
    Participant

    Hi,
    Our website is amplidata.com. Not sure what’s going on and can use your help.

    The forms created within Enfold have been working fine. Made some edits to the jobs page and custom css for toggles. Everything was working fine as I checked after all edits. Got a message today that forms are not working. I did a restore to Nov.20 but that did not fix. Pls see what you can find. Much appreciated

    Regards,
    Seth

    Hello Josue,

    I know a few basics in programming, but I’m not a programmer.

    That said, I am not able to display the prices in the portfolio boxes.

    I tried to replace “custom_markup” with “custom_price” that I use in my custom fields, but in vain.

    And what does ($ output. = “CUSTOM META HERE CODE”)?
    What should I replace it with “custom meta code here”?

    Note that I use a child theme and I added the command lines as mentioned in your answer.
    I also replaced the lines requested in portfolio.php file I copied to my child theme.

    Here’s the code displayed in my functions file:

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    
    /*
     * add option to edit elements via css class
     */
    // add_theme_support('avia_template_builder_custom_css');
    
    // enable custom fields for Portfolio items
    add_filter('avf_portfolio_cpt_args', 'avf_portfolio_add_custom_fields', 1);
    function avf_portfolio_add_custom_fields($args) {
    $args['supports'] = array('title','thumbnail','excerpt','editor','comments', 'custom-fields');
    return $args;
    }
    
    // alter the portfolio grid order
    function custom_post_grid_query( $query, $params ) {
        $query['orderby'] = 'meta_value';
        $query['order'] = 'DESC';
        $query['meta_query'] = array(array('key' => 'custom_price'));
        return $query;
    }
    add_filter( 'avia_post_grid_query', 'custom_post_grid_query', 10, 2);
    
    // Add new or replace Advanced Layout Builder elements from Child Theme
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }

    Again thank you for your help. :)

Viewing 30 results - 1,381 through 1,410 (of 1,622 total)