Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #873560

    https://kriesi.at/support/topic/enfold-image-sizes/
    I followed instructions in link above but I don’t see the image sizes displayed after I click: Functions PHP this is what is displayed. What am I doing incorrectly?
    Enfold Child: Theme Functions (functions.php)
    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘parent-style’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme.

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );

    //set builder mode to debug
    // add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug()
    {
    return “debug”;
    }

    // workaround for LayerSlider background not loading
    add_filter( ‘category_description’, ‘do_shortcode’ );

    add_action( ‘wp_head’, ‘load_LayerSlider_fix’ );
    function load_LayerSlider_fix() {
    ?>
    <script type=”text/javascript”>
    jQuery( window ).load(function(){
    jQuery(window).trigger(‘resize’);
    });
    </script>
    <?php
    }

    //Enable Custom CSS
    add_theme_support(‘avia_template_builder_custom_css’);

    add_action( ‘woocommerce_after_shop_loop_item_title’, ‘my_add_short_description’ );
    function my_add_short_description() {
    global $product;
    $temp = $product->get_attribute( ‘Temperature’ );
    if ($temp != ”)
    {
    echo “<div style=’font-size:0.7em;’>”.” “.$temp.”</div>”;
    }
    }

    function get_woo_reviews(){
    $count = 0;
    $html_r = “”;
    $title=””;
    $args = array(
    ‘post_type’ => ‘product’
    );
    $comments_query = new WP_Comment_Query;
    $comments = $comments_query->query( $args );
    foreach($comments as $comment) :
    $title = ‘comment_post_ID ).'”>’.get_the_title( $comment->comment_post_ID ).’‘;
    $html_r = $html_r. “<div style=’color:#00c0ce;’>” .$title.”</div>”;
    $html_r = $html_r. “<div>” .$comment->comment_content.”</div>”;
    $html_r = $html_r.”Posted By”.$comment->comment_author.” On “.$comment->comment_date. “<br />”;
    $html_r = $html_r.”<br />”;
    endforeach;

    return $html_r;
    }
    add_shortcode(‘woo_reviews’, ‘get_woo_reviews’);

    /* Display USD for Product PRices on Shop/Product/Cart */
    function sv_change_product_price_display( $price ) {
    $price .= ‘ USD’;
    return $price;
    }
    add_filter( ‘woocommerce_get_price_html’, ‘sv_change_product_price_display’ );
    add_filter( ‘woocommerce_cart_item_price’, ‘sv_change_product_price_display’ );

    /*
    Woocommerce 3.0.0 Compatibility Fix
    Remove Enfold’s custom functions that conflict with the new image display in WooCommerce 3.0.0
    */

    global $woocommerce;
    if( version_compare( $woocommerce->version, ‘3.0.0’, “>=” ) ) {
    function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
    return $img;
    }
    function avia_woocommerce_post_thumbnail_description($img, $post_id){
    return $img;
    }
    }

    #874331

    Hey Kent,

    Please try following:
    1. Install this plugin: https://wordpress.org/plugins/simple-image-sizes/
    2. Go to Settings > Media
    3. Change the entry_without_sidebar image size (increase its width / height).
    4. Regenerate the thumbnails by clicking the button at the bottom.

    Best regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.