Woocommerce – Edit Shop/Category Pages
-
Hi All,
I have been working at this for too long now and I need to turn to the experts! I am just trying to add some text to the top of my store and category pages which will have links to their subcategories. For example, because of the way my Shop page is set up, linked to my own created page “Store”, I can just add the text in the page editor, make some of the words linked, wack a couple of “|” in between, and its all good.
The problem I have is that when I created my product categories with woocommerce (with the same name as some pages I created to house these sub categories: eg “Maps”) it has taken the same slug or something and now links directly to the subcategory page automatically created by woocommerce. The page does not show up in my pages menu, nor does editing my pages of the same name make any difference.
I tried editing the woocommerce archive-product.php but I could not make an if statement that would work for me. I wanted to make if statements in there to check if it was the store page, then put the text I want at the top of the store page, and if it were the map category page, it would have the text I want at the top of the map page. The challenge is that I cannot find the page ID and I couldn’t work out a statement that would work along the lines of a string comparison between woocommerce_page_title() and the title I want.I know there is something about “hooks” but I just confused myself trying to understand exactly how they work. I also don’t think that is necessary because I am using the “responsive” theme and it is integrated with woocommerce already.
If anyone knows how this can be done, or has managed to make edits to woocommerce pages before and can shine some light for me that would be most appreciated!! Thanks in advance!
- The topic ‘Woocommerce – Edit Shop/Category Pages’ is closed to new replies.