Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #962372

    Hello, I’ve been working on a site and compiled a number of questions for small things I was trying to figure out how to adjust.

    1. On my search bar as seen in the picture, it is blue, the theme default. How can I change this square to be the same green as the magnifying glass above it?

    2. On my Home page & related products (when on a individual product page) how can I center the price & product name for these areas?
    I used the code below which did what I wanted on the product category page (when viewing individual products), but it still has left justify set for the home page & related products underneath a actual product listing.

    #top.woocommerce-page .template-shop ul.products li a {
    text-align: center;
    }

    3. On the Shop page which list categories, how can i completely disable or hide the product filter options? Display X products per page as well as sort by options should both be disabled, but only for the product category page.

    4. I have the ‘Shop Banner’ enabled, it then says that enables a banner for the header of each category, but I don’t see anywhere to override the default setting of the category image. I want a different category banner, from my category image. I want the category image to only appear on the ‘Shop’ page. I think this needs custom CSS & I want to define a link to a image hosted on the website.

    Thanks for the help. Login info in private area.

    • This topic was modified 6 years, 7 months ago by kylebritton.
    #963579

    Hey kylebritton,

    Thank you for using Enfold.

    We don’t usually entertain multiple questions inside a single entry. Please create separate thread for each questions.

    1.) Use this css code to change the search icon color.

    .header_color input[type='submit'] {
        color: green;
    }

    2.) This css code should center align the product title.

    .products .product h2, .products .product h3, .products .product h4, .products .product h5, .products .product h6, h2.woocommerce-loop-product__title {
        text-align: center;
    }

    3.) Remove the sorting option with this one.

    .archive .product-sorting {
        display: none !important;
    }

    4.) Edit the category and look for the “Thumbnail” option.

    Best regards,
    Ismael

    #963980

    Firstly thanks for the help Ismael. Sorry about posting multiple questions in a single thread. I wasn’t sure if that was allowed or not here. I will separate questions in the future.

    1. This worked how I wanted paired with the background-color attribute.

    However I now have a new problem. I didn’t fully notice before, but now when hovering over the magnifying glass in the search box it changes the color of the magnifying glass to black, which makes it blend with the background. How can I make the search bar magnifying glass change to green on hover?

    1a.

    1b.

    2. Yes this is what I was needing, however it’s my fault for not being specific enough. With the previous code that worked on the products page, it centered both the product title and the cost. I needed cost centered too. It was only one set of code that did both for the products page, so I apologize for not being clear I wanted both centered, and this is applying to both Related Products (on individual product page) & Popular Products (on the homepage).

    2a.

    2-1. Popular Products has the correctly formatted header. Related Products is bold, smaller font and has a left justify. How can I adjust the Related Products heading to match Popular Products? In addition the font of the titles for Popular Products doesn’t match Related Products. I’m not sure where that font is set.

    2-1a.

    3. Yes exactly what I needed. Hides sorting options on “Shop” page which shows the product categories.

    4. Sorry for the miscommunication on this adjustment. I know how to turn on the thumbnail for the product categories, which I do want. I did go to the categories and set the thumbnail, which I want to ONLY display on the product category (Shop) page. I do not want the category thumbnail to display as the banner on the products page once you select a category. Instead I was looking for code to replace that banner image with another image of my choice and have it centered since there doesn’t appear to be anyway to change that image through the theme UI itself.

    4a.

    4b.

    Again thanks for all the help so far Ismael.

    • This reply was modified 6 years, 6 months ago by kylebritton.
    #965223

    Hi,

    Thank you for the update.

    1.) Combine this css code with the previous one.

    .header_color input[type='submit']:hover {
        color: gray;
    }

    2.) The price is already center aligned when I checked. :)

    4.) I’m sorry. That is the only image option of the product category by default. If you like, you can hide the image on the actual product category page with this css code.

    .tax-product_cat .page-thumb {
        display: none;
    }

    Best regards,
    Ismael

    #965521

    1. Thanks that was the code I needed.

    2. Sorry you must have looked at the wrong area. You can see from pictures 2a & 2-1a in my previous post that those prices ARE NOT centered, in regards to “Related Products” & “Popular Products”. At this time ONLY my main Product Listing pages have price centered.

    Also in regards to question 2 previously. I asked how can I change the font on the homepage “Popular Products” area to match the same font type of all the other areas. “Related Products” & my Product Listings match each other. It’s only “Popular Products” that doesn’t.

    I also wanted the heading of “Related Products” to match “Popular Products”. i.e. larger text, centered, etc.

    4. It’s a shame to see there is no way to adjust the banner at the top of each Product Listing page. I guess I will hide it for now and submit this as feedback for future improvements to the theme. There really should be a way to simply change this to an alternate image via setting a link. I mean 99% of the work is already done. It’s already got code to pull a image and insert it in the proper spot. It just needs a option to set the image link.

    I found some CSS code that will hide that & replace it with an alternate image, however the problem is when referencing that banner, it seems it’s a global banner. So it sets the same image for every Product Listing banner. Is there anyway to tweak this to allow a different image on each Product Listing page banner?

    i.e. I want the “Refrigerators” section to have a banner that says “Refrigerators” at the top. I want the “Dryers” section to say “Dryers”, etc.

    .tax-product_cat .page-thumb {
      display: block;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      background: url(https://notrealdomain2.com/newbanner.png) no-repeat;
      width: 180px; /* Width of new image */
      height: 236px; /* Height of new image */
      padding-left: 180px; /* Equal to width of new image */
    }

    Thanks again Ismael. If I could just get a follow up on questions 2 & 4, about changing the font type, centering prices, & if there is any modification to the posted code which would allow multiple banner images, since that code at least gives me what I want as a workaround from being able to directly replace the image.

    • This reply was modified 6 years, 6 months ago by kylebritton.
    #967602

    Hi,

    2.) Sorry about that. Please use this css code to center align the price container.

    #top .price {
        display: block;
        float: none;
        margin: 0 auto;
    }

    4.) One workaround is to create a custom product page for every product category or archive pages. You have to do a 301 redirect manually though. Or replace the “tax-product_cat” selector with the term selector. Example.

    .term-refrigerators .page-thumb {
      display: block;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      background: url(https://notrealdomain2.com/newbanner.png) no-repeat;
      width: 180px; /* Width of new image */
      height: 236px; /* Height of new image */
      padding-left: 180px; /* Equal to width of new image */
    }

    Best regards,
    Ismael

    #970467

    2. This is not working for me unfortunately. I tried to modify the code to get it to work with no luck. I also removed all my custom CSS code to make sure nothing else was overriding the code you posted & that still didn’t make it work.

    Login credentials have been provided in previous posts. Can you please login & go under Appearance > Editor > Style.css & adjust the “Center Price” code you provided to make it work?

    4. Thanks for some additional tips on modifying the banners.

    Thanks Ismael!

    #971102

    Hi kylebritton,

    You need to limit the width of the price span, like this:

    
    #top .price {
        display: block;
        float: none;
        margin: 0 auto;
        width: 20%;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #971965

    Thanks Victoria. Perfect!!

    #972204

    Hi kylebritton,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.