Tagged: x
-
AuthorPosts
-
July 26, 2016 at 4:34 pm #1104192
I understand that you can not directly edit the SHOP page in WP using the editor or Cornerstone, so how would I go about adding a simple ad at the top of the shop page? I have looked for a plugin but cant seem to find one and this site already has so many plugins that I hate to add another. Is there a way to do this via the child-theme? I am not really a programmer so using WooCommerce hooks is not really an option either.
Many thanks,
HoustonJuly 26, 2016 at 11:22 pm #1104581Hello Houston,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thanks.
July 26, 2016 at 11:44 pm #1104601askaricollection.com
July 27, 2016 at 11:22 am #1105396Hey Houston,
You can add content to the shop page and it’ll display above the products (see attachments). No need for customization.
Thanks.
July 27, 2016 at 12:07 pm #1105474Yeah, that was the first thing I tried and it did not work. The image never showed up. 🙁 any ideas why not.
Added a small banner image to the SHOP page and nothing showed up. I have even tried 2 different plugins and they will not show anything on this page either. I slightly modified this page to show a SHORT DESCRIPTION but other than that it is the standard content-product.php file that I duplicated in my child theme. (V2.6.1)
This is the code I added:
<?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ) ?>
That is all.
July 27, 2016 at 2:34 pm #1105766Hi Houston,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
July 27, 2016 at 4:36 pm #1105946This reply has been marked as private.July 27, 2016 at 5:31 pm #1106001OK, so it DOES SHOW on the SHOP page, but if you go to a category, then it is not there. I found a resource on YouTube that explained how to do it for specific pages so I have edited the function.php with this code
add_action ('woocommerce_archive_description' , 'promotional_banner',99); function promotional_banner() { echo '<img src="http://askaricollection.com/wp-content/uploads/2016/07/MK30-banner.png" style="margin:0 0 20px 10px;">'; }
Now I have a banner on all pages pertaining to products. Shop page and categories.
July 27, 2016 at 9:14 pm #1106380Hello There,
We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!Best Regards.
-
AuthorPosts