WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How to edit and keep class-wc-widget-featured-products.php update proof (3 posts)

  1. krisscross90
    Member
    Posted 8 months ago #

    Within the class-wc-widget-featured-products.php file I need to Remove this on Line 101:
    <?php if ( $r->post->post_title ) echo get_the_title( $r->post->ID ); else echo $r->post->ID; ?>

    and Remove:
    </a> <?php echo $product->get_price_html(); ?>

    And change the UL tag to a DIV and delete the li tags, which is fine to do within the core file... but can anyone tell me how I would implement this in the functions file to keep my changes from being deleted with every woocommerce update?

    I tried adding the edited file to a woocommerce>classes>widgets file structure but I've just read that this only works with template files.

    Any help will be great appreciated!!
    Thanks

    http://wordpress.org/plugins/woocommerce/

  2. setnaps
    Member
    Posted 8 months ago #

    Hi Krisscross90.
    Did you happen to find a solution for your request?
    I also want to edit tje class-wc-widget-featured-products.php
    Thanks

  3. krisscross90
    Member
    Posted 7 months ago #

    Hi Setnaps. No i didn't find a solution unfortunately. I've just saved my changes to a txt file on my computer and everytime I update, I just copy over my code. Bit of a hassle though! Hope you find some answers! :)

Reply

You must log in to post.

About this Plugin

About this Topic