Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey guys,

    I just had the same problem and with the guide/tutorial Leah provided I went on my way ^_^

    Because the event page itself already has an excerpt I decided to recycle the function for the widget. In wp-content/plugins/the-event-calender/views you have a file named: single-event.php

    At the bottom of that file is this snippet:

    <!-- Event Content -->
    <?php do_action( 'tribe_events_before_the_content' ) ?>
    <div class="tribe-events-list-event-description tribe-events-content description entry-summary">
    	<?php the_excerpt() ?>
    	<a href="<?php echo tribe_get_event_link() ?>" class="tribe-events-read-more" rel="bookmark"><?php _e( 'Find out more', 'tribe-events-calendar' ) ?> »</a>
    </div><!-- .tribe-events-list-event-description -->

    The widget file is located at wp-content/plugins/the-event-calendar/views/widget and in my case I only use the list so it’s the list-widget.php.

    I pasted the code after the </h4> tag and that solved my problem.

    Hopefully this solves the problem for you. Remember to always back up the files you’re changing and too copy them to your child theme to ensure that you keep your changes.

    Regards,

    monsterness

    (@monsterness)

    Hm I had the same problem couple of days ago. Simple solution for me was:

    Go to your product-variations, here you can see STOCK. Fill this in and it shows up. In otherwords; It won’t give you the variation if there is no stock.

    Also you can set a “standard selection” here which might be usefull for the future.

    If this doesn’t work go check product-attributes and see if the variation contains the terms. Hope this helps!

    monsterness

    (@monsterness)

    Hey guys, I just noticed I forgot to tell you or maybe you already know this but,

    When changing your theme always make sure you use your CHILD theme. This is so you keep your changes when upgrading your theme in the future.

    WordPress has a detailed explanation on how to do this. When putting changes in your function.php do not copy the file to your child. Just make a new function.php file in your child theme and put the code in there.

    This his how my child function.php looks

    <?php
    /**
     * Flatsome child functions and definitions
     *
     * @package flatsome
     */
    
    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
    if ( is_home() ) {
         remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
         }
    remove_action( 'woocommerce_after_single_product_summary',
    'woocommerce_output_related_products', 20 );
    add_filter( 'wc_product_enable_dimensions_display', '__return_false' );
    
    add_filter('woocommerce_get_availability', 'availability_filter_func');
    
    ?>

    As you can see it only contains the code I added. The rest of the file get taken from the original theme file. Maybe you already know this but it’s also for future people seeing this ! If I explained it poorly or have any questions do ask.

    Happy coding.

    Hm, I’m not sure if this works maybe you can try this out:

    add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
    
    function woo_remove_product_tabs( $tabs ) {
        unset( $tabs['additional_information'] );  
    
        return $tabs;
    
    }

    This goes into your functions.php. Glad to be of help! Figuring it out piece by piece myself^^

    Hey,

    I just did found this out this morning. Also busy working on a site.

    To remove the related products I added this to my functions.php

    remove_action( 'woocommerce_after_single_product_summary',
    'woocommerce_output_related_products', 20 );

    For the additional information tab I just had some info there because of my variations If you go to products > edit a product > properties.

    There you can uncheck: Show on product page.

    Hope this helps!
    (Ps: my shop is in dutch so tried translating it hopefully it will have these names in english)

Viewing 5 replies - 1 through 5 (of 5 total)