E-shop bellow the Home page
Support Area › Forums › Elite › E-shop bellow the Home page
- This topic has 9 replies, 2 voices, and was last updated 9 years, 1 month ago by Bill Robbins.
-
AuthorPosts
-
February 8, 2015 at 14:38 #26455Jiří BernátParticipant
Hi Bill,
How are you after the week-end?I am trying to use Home block-content widget to display Shop page bellow the home screen but it doesn’t work. For the page named “O nas” it is working well.
What am I doing incorrectly?Many thanks for reply.
Jiri
February 9, 2015 at 09:22 #26470Bill RobbinsModeratorHello Jiri,
Excellent question. In WooCommerce the actual shop page is taken over by the plugin. It inserts content into that page based on a setting as opposed to something like a shortcode that gets replaced with content.
Because of the way that works, you can’t insert the shop’s content via a widget like you could another page.
What you can do though is use the home block — Products widget to insert the products from the category of your choosing into the widget. What I often to is create a product category just for the home page so that I can add products from across categories to the home page.
If you have any trouble, let me know.
Thanks,
BillFebruary 9, 2015 at 12:51 #26507Jiří BernátParticipantHi Bill, thank you. It is working, but pictures, or icon of products from shop are too big, in product settings I tried to change px but it is not doing anything.
What can I do to change the picture of the product category on home page?
Thanks
Best regards.
Jiri
February 9, 2015 at 13:28 #26508Bill RobbinsModeratorHello Jiri,
You can change that if you need to. Here’s how:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose home-product-item.php.
- Find this line:
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'elite' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_post_thumbnail( 'home-product', array( 'class' => 'feature' ) ); ?></a>
and change it to this:
(Be sure to copy that code directly from the support site and not the notification email). - Change the 480 to the height you’d like to have the images there be. The 360 is the width and I would leave that as is. Then save your changes.
To resize the images you’ve already uploaded, install the Regenerate Thumbnails plugin. It adds a new screen to the Tools menu in your dashboard that you can use to resize images.
Let me know if you have questions,
BillFebruary 12, 2015 at 09:44 #26623Jiří BernátParticipantOk… i understand. It will take me more time.
Last question. Is it possible to have another background on other pages than on home page? I have something like wood motive now on all pages, but for other pages it is not nice.
Thank you.
Have a nice week-end.
Jiri
February 12, 2015 at 09:51 #26625Bill RobbinsModeratorGood Morning Jiri,
I believe we can do that. Here’s how:
- Go to your theme options page and choose the Advanced tab.
- Scroll down to the Custom CSS box and add this:
body { background-image: none; } body.home { background: url(https://www.olivace.cz/wp-content/uploads/2015/01/wood-4.jpg) #ededed repeat scroll; }
- Update your settings.
If that works, it should hide the background image on the home page, but leave it everywhere else.
Enjoy your weekend too,
BillFebruary 12, 2015 at 12:09 #26631Jiří BernátParticipantMay be I wasn’t clear. The background on my home page is good as it is, but is it possible to put another picture as background on other pages than I have on home page?
February 12, 2015 at 12:24 #26632Bill RobbinsModeratorSorry I had something else in min there. Change that last snippet to this
body { background-image: url(https://yoursite.com/image.jpg); } body.home { background: url(https://www.olivace.cz/wp-content/uploads/2015/01/wood-4.jpg) #ededed repeat scroll; }
Where you replace http://yoursite.com/image.jpg with the url to the image file. You can get the file url from inside the WordPress media library. Make sure to get the file url and not the attachment page url.
Bill
February 12, 2015 at 16:24 #26649Jiří BernátParticipantGood…thank you very much.
🙂
February 12, 2015 at 16:43 #26650Bill RobbinsModeratorGlad that did the trick 🙂
Take care,
Bill -
AuthorPosts
- The topic ‘E-shop bellow the Home page’ is closed to new replies.