Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1104192

    Houston
    Participant

    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,
    Houston

    #1104581

    Prasant Rai
    Moderator

    Hello 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.

    #1104601

    Houston
    Participant

    askaricollection.com

    #1105396

    Christian
    Moderator

    Hey Houston,

    You can add content to the shop page and it’ll display above the products (see attachments). No need for customization.

    Thanks.

    #1105474

    Houston
    Participant

    Yeah, 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.

    #1105766

    Jade
    Moderator

    Hi 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1105946

    Houston
    Participant
    This reply has been marked as private.
    #1106001

    Houston
    Participant

    OK, 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.

    #1106380

    Rue Nel
    Moderator

    Hello 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.