Viewing 10 posts - 1 through 10 (of 10 total)
  • #132919
    mokadeco
    Member
    Post count: 34

    Hello,

    Two questions on the product page.
    1. Is it possible to put the name of the product with the price?
    ( on ​​the line where the price appears now)
    2. How I can remove the arrows previous / next product ?.

    Thanks

    #133004
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    1-inside the file content-single-product.php in “neighborhood/woocommerce”

    Find this line

    
    <p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p>
    

    and replace by this one

    
    <p itemprop="price" class="price"><?php the_title();?> - <?php echo $product->get_price_html(); ?></p>

    2- Add the code below to your custom css

    
    .summary-top .product-navigation .nav-next i, .summary-top .product-navigation .nav-previous i{
    display:none;
    }

    Hope it helps.

    -Rui

    #133069
    mokadeco
    Member
    Post count: 34

    Perfect!!
    Thanks!

    #133072
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem.
    Rui

    #135389
    jonorenton
    Member
    Post count: 40

    Hello there, sorry to join to an existing thread.

    Regarding mokadeco‘s first question; Is it possible to place the price below the title? rather than being next to it following a hyphen. I’m just unsure of what html codes such as <br> you can use in a php file.

    Thank you very much πŸ™‚

    Have a super day

    #135394
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Sure, what’s your link?

    – Kyle

    #135402
    jonorenton
    Member
    Post count: 40
    This reply has been marked as private.
    #135405
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try this:

    .woocommerce .summary p.price .amount {
      display: block;
      margin-top: 20px;
    }

    – Kyle

    #135419
    jonorenton
    Member
    Post count: 40

    Perfect! And I assume I can remove the hyphen from the php snippet from above.

    Another very quick question: I always add custom CSS via the appearance editor then adding bits to the bottom of the style.css. Only the other day did I notice a box in your Swift settings to add custom CSS. Does it do the same thing?

    Cheers!

    Have a nice day Kyle πŸ™‚

    #135427
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Yes remove the hyphen from the php

    You should never add css to the style.css file is this will be overwritten when you update the theme

    You need to use the theme options custom css or a child theme

    – Kyle

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register