Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #21761

    Hello,

    I was trying to fix my thumbnail size and tried to use the last piece of advice on the following thread:

    http://www.kriesi.at/support/topic/woocommerce-product-page-featured-media-thumbnail-size

    So I opened up the functions.php and edited line 40. But, ever since then, I’ve been getting the following message and I cannot access any part of my site anymore:

    “Parse error: syntax error, unexpected T_STRING, expecting ‘)’ in /home/beadmeupnow/beadmeupnow.com/wp-content/themes/propulsion320/functions.php on line 40″

    I tried to copy and paste the original functions.php back in the editor but it’s not working…

    The only page I can currently access right now is the functions.php

    I have no idea what to do. Please help… Thank you.

    #112982

    Hi,

    This is the original code on line 40. Try it.

    $avia_config['imgSize']['portfolio'] = array('width'=>450, 'height'=>335); // images for portfolio entries (2,3,4 column)

    Regards,

    Ismael

    #112983

    I tried that but it’s still not working… Is there anything else I can try?

    Thank you

    #112984

    Hi estrella88,

    Can you post the code in line 38-43?

    Regards,

    Ismael

    #112985

    I actually just tried accessing my files through webftp and was able to make the changes on there. Thank you for your help!

    #112986

    Actually, I have another three more questions.

    First, when you go to http://www.beadmeupnow.com you should be able to see one product on there. The photo I uploaded comes out cropped in the thumbnail, which was what I was originally trying to change (by changing the code on line 40). How do I change the settings so that the featured media thumbnail photos do not come out cropped?

    Second, if you go to http://www.beadmeupnow.com/shop/toggle-28802869/ for that product, you’ll see that the product description is listed twice. This wasn’t like that before the update so I’m not sure what changed but I can’t seem to get rid of that duplicate description.

    Third, I would like the product photo and description on the left side of the screen and the “add to cart” option on the right side of the screen instead but I have no idea how to go about doing that.

    I’m a total beginner at all of this so thank you for your help!

    #112987

    Hi estrella88,

    1) You can use Simple Image Sizes plugin to change the dimension and you will also have the option to crop or not ( http://wordpress.org/extend/plugins/simple-image-sizes/ ).

    2) Go to wp-content/themes/propulsion/config-woocommerce/config.php and find this code:

    function avia_woocommerce_short_description_panel()
    {
    global $post;

    if(!empty($post->post_excerpt))
    {

    $output = "";
    $output .= '<div class="panel" id="tab-shortdescription">';
    $output .= "<h2>".__('Short Description','avia_framework')."</h2>";
    $output .= get_the_excerpt();
    $output .= "</div>";

    echo $output;
    }
    }

    replace it with:

    function avia_woocommerce_short_description_panel()
    {
    global $post;

    if(!empty($post->post_excerpt))
    {

    $output = "";
    $output .= '<div class="panel" id="tab-shortdescription">';
    //$output .= "<h2>".__('Short Description','avia_framework')."</h2>";
    $output .= get_the_excerpt();
    $output .= "</div>";

    echo $output;
    }
    }

    3) Go to wp-content/themes/propulsion/config-woocommerce/config.php and find this code:

    add_action( 'woocommerce_before_single_product_summary', 'avia_woocommerceproduct_prev_image', 1,  2);
    add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 2);
    add_action( 'woocommerce_after_single_product_summary', 'avia_close_summary_div', 1000);
    add_action( 'avia_add_to_cart', 'woocommerce_template_single_add_to_cart', 30, 2 );

    replace it with:

    add_action( 'woocommerce_after_single_product_summary', 'avia_woocommerceproduct_prev_image', 1010,  2);
    add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 2);
    add_action( 'woocommerce_after_single_product_summary', 'avia_close_summary_div', 1000);
    add_action( 'avia_add_to_cart', 'woocommerce_template_single_add_to_cart', 30, 2 );

    finally, add this in Quick CSS or custom.css:

    .alpha.four.units.prev_image_container {
    clear: none;
    }

    Hope this helps.

    Regards,

    Ismael

    #112988

    Thank you for your continued assistance, Ismael.

    1. I’m still trying to figure out this one out… I’ve been trying different settings but haven’t seen any changes. I’ll keep playing around with this one.

    2. The second product description is still there…

    3. The cart went to the bottom of the page instead of switching over to the right side…

    #112989

    3. Actually, the cart just updated and it is now on the right.

    #112990

    Hi estrella88,

    1.) Have you regenerate the images?

    2.) Try going to wp-contentpluginswoocommercetemplatessingle-producttabsdescription.php and find this code:

    <?php $heading = apply_filters('woocommerce_product_description_heading', __('Product Description', 'woocommerce')); ?>

    <h2><?php echo $heading; ?></h2>

    Just remove this.

    Hope this helps.

    Regards,

    Ismael

    #112991

    It finally worked! Thank you so much, Ismael! I couldn’t have done this without your help!

    #112992

    Hi estrella88,

    Glad that we could help. :)

    Cheers,

    Ismael

    #112993

    @Ismael, I’m having the same issues above as estrella88. When I remove the code, my product placeholder image wheel spins and never loads the image.

    The duplicate description disappears, but then the product image disappears as well.

    Thoughts?

    #112994

    Hi,

    Can you give us a link to your website?

    Regards,

    Ismael

    #112995
    #112996

    Hi,

    You can add this on your custom.css or Quick CSS to hide the duplicated description

    .single-product .summary-main-content.entry-content {
    display: none;
    }

    Regards,

    Ismael

Viewing 16 posts - 1 through 16 (of 16 total)

The topic ‘Need help with functions.php’ is closed to new replies.