Royal engineer woocommerce breadcrumbs and product/category title

This topic has 4 replies, 3 voices, and was last updated 8 years, 10 months ago ago by Robert Hall

  • Avatar: Neuropass
    Neuropass
    Participant
    May 11, 2015 at 19:29

    I’m struggling with the product title and product category placement.

    <h1 class="title"><span><?php the_title(); ?></span></h1>

    and

    <h1 class="title"><span><?php echo single_cat_title(); ?></span></h1>

    the files I believe are:

    single-product.php
    content-product_cat.php
    

    this is what I need to do:

    http://gyazo.com/466f5156b794acc40c3bd8a4f97c1420.pnghttp://gyazo.com/466f5156b794acc40c3bd8a4f97c1420.png

    and:

    http://gyazo.com/1de0e0bd20554161cf7a0bedfe2cb6be.pnghttp://gyazo.com/1de0e0bd20554161cf7a0bedfe2cb6be.png

    so the product category and product title will always be inside the :

    col-md-9 col-sm-12 product-content sidebar-position-left responsive-sidebar-bottom

    div.

    Please let me know I’ve been struggling with this for a long time now. :-/

    PS> Im using the royal-child so I’m assuming I will need to place the woocommerce folder there with the proper changes to the files above..?

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    May 11, 2015 at 20:01

    Hello,

    Please provide us with wp-admin panel and FTP credentials in private content.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Neuropass
    Neuropass
    Participant
    May 11, 2015 at 20:30

    Added. However I would like to know the “how to” please. As I already spent a bit of time on it :-/ I already added the woocommerce folder to the child theme. What Am trying to achieve is the same category and single product titles placements as the about us page there. So its all uniform look.

    Thanks a lot!

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 12, 2015 at 08:22

    Hello,

    For single product try following steps:
    Add this code in custom.css file.

    .single-product .woocommerce-breadcrumb,
    .single-product .page-heading .title{
      display: none;
    }

    and add this code
    <h1 class="title"><span><?php echo get_the_title($postspage_id); ?></span></h1>
    after <div class="page-content"> on line 30 in single-product.php file

    For category page please read this topic:
    https://wordpress.org/support/topic/display-category-title
    http://wordpress.stackexchange.com/questions/89819/woocommerce-how-to-display-product-category-above-product
    http://stackoverflow.com/questions/21009516/get-categories-from-wordpress-woocommerce

    Regards,
    Robert Hall.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.