Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter indigotimberlake

    (@danielpitulia)

    This is a bit weird, but I swithced out .get_category_link with .get_term_link and now it works.

    Thank you for your time,
    /Daniel

    Thread Starter indigotimberlake

    (@danielpitulia)

    I wrote this code a long time ago and forgot that I manually inserted it into the functions PHP theme. I guess this is unrelated to the actual woocommerce plugin, but I will ask you anyway and I hope this is not off-topic.

    This is my code:

    add_action( 'woocommerce_after_subcategory_title', 'my_add_cat_description', 12);
    
    function my_add_cat_description ($category) {
    	$cat_id=$category->term_id;
    	$prod_term=get_term($cat_id,'product_cat');
    	$description=$prod_term->description;
    	echo '</a><div class="shop_cat_desc">'.$description.'<br><a href="'.get_category_link( $cat_id ).'"><button id="view-products">View Products</button></a></div><a>';
    }

    Does anyone know why my href tag is no longer working?
    Best, Daniel

    I’m also looking for a solution to this problem! I’m not getting any smilies at all in my excerpts and I’m using the Genesis framework.

    Hello!

    I had the same issue with the fields not updating. If I click a hundred times, I might get lucky and the field stays selected. ??

    The above solution posted by Koff seems to solve the field update issue. However, I noticed that other fields are affected. For example, It’s no longer possible to enter the product ID when I choose Product – Include.

    Any help with this issue would be much appreciated!

    Best regards,
    Daniel

    Thread Starter indigotimberlake

    (@danielpitulia)

    I think I understand the process of adding new widget areas a bit better now. I basically broke it down into three major steps:

    1. Add a function, e.g. arphabets_widgets_init() which contains register_sidebar, explained here Widgetizing Themes.

    2. Call the function to create a widget area, for example:
    arphabets_widgets_init(‘Sidebar’, ‘Sidebar’, ‘Side bar for Pages’);

    3. Place the function dynamic_sidebar( ‘Sidebar’) in page.php or wherever you want the sidebar to appear.

    To create a separate widget area for a shop sidebar, I guess just need to follow these steps and change the dynamic_sidebar() in the shop template!

    Anyway, Im going to practice some more with creating widget areas. Thanks for the help!

    Thread Starter indigotimberlake

    (@danielpitulia)

    Hi,

    Actually, I read about it in older threads when I tried to find a solution. I was hoping to solve this without using a plugin. It seems like it doesn’t need a lot of code. Also, I’m really trying to learn developing on my own so I guess a plugin defeats the purpose… If I can’t find a solution, I guess I will use the plugin or create my own child theme of storefront and customize that one instead.

    Thanks though!

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