I am building a Woocommerce shop. As you will know, when adding products they are then assigned to categories... when I view each category, the products are displayed in a generic fashion... IE 12 products per page over XX Pages...
Currently, when creating a new page in wordpress, it does not allow me to select the template which woocommerce uses to display my categories.
I am trying to find a way to create my own template which calls the layout from the template all my other categories uses, so that I can then use it on any custom product pages I make whilst keeping the website uniform
currently when I use the featured products shortcode, It displayes how ever many products I ask it to, It does not break it doen into pages and I cann ot use the filters that I use on the other pages.
I have tried...
get_template()
and
template_loader()
Functions but nothing seems to work.
I am new to web design but seem to be picking up fast but cannot figure for the life of me how to call a template layout into my own page.
I am also unsure what template woocommerce uses to display its category items, I have searched google and seem to get conflicting answers.
any advice would be much appreciated
Related
I feel like this should not be very difficult to do however I am having great difficulty figuring it out, thanks in advance for your help on this matter.
I am creating a Woo-commerce Store for my website and am using a custom Wordpress Theme I am building myself. I have installed Woo-commerce and set up the default pages including the Shop Page. I would like to add a sidebar to my Shop page (i.e where I display all products) and have this same sidebar appearing on all category and other sub pages from the shop page to assist in navigating my shop. In the sidebar I will add product filtering (to add some context) and I understand how to achieve this by adding widgets.
My issue however is I am unsure how to add and display a sidebar on the Shop and sub category pages. I do not want to have to overwrite the default php to achieve this (if possible) and would like to complete this as simply as possible however I have built a custom single-product.php page if this make a difference to my issue.
I have attached an image of what I am trying to achieve and what my current shop page looks like.
I am literally at my wits end. I'm so sorry for all the questions.
I have a site with thousands of products on it. Each of these products might belong to multiple categories. I would like to enable a link that will take a user back to the referring category. Breadcrumbs work, only to go to the main category, I need them to go back to the category they clicked through from.
Previous page js doesn't work as i've enabled infinite scrolling and it takes me to the page i was at, but will not allow me to scroll to the top.
I have tried so many ways to accomplish this and just can't find one that works.
I am using flatsome theme.
I have a question regarding how best to build a widget/plug-in for WordPress.
I have tried to code this thing out but unfortunately to no avail but that's because I'm increasingly thinking I'm going about it the entirely wrong way.
This is what I'm trying to achieve:
I have built a theme from scratch. In this theme I have two content areas. The larger of the two contains the main content and the smaller of the two (proposed widget/plug-in) contains supplementary information (opening times, Facebook feed). I don't want this widget/plug-in to appear on every page and would like the ability to turn it on or off within the usual WordPress admin area.
The impression I am getting is that I can build the widget that contains the content I want (with necessary forms to change said content) but it is either on for ALL pages or off for ALL pages, no sort-of page specific functionality. That's where I'm thinking a plug-in would extend the functionality and allow me to be more page specific with it. That is my current set-up with a theme I'm running and plug-in I added (neither of which were coded by me) but I would like to repeat it as best as possible.
Would it be right to assume that widgets are not really designed to have page specific functionality and that function should be left down to a plug-in?
I appreciate this question asks nothing really in the way specific advice but I would just like an opinion or two on the best approach before I go away and create it - this is my main struggle at the moment.
Thanks for looking.
This can be done with the Jetpack plugin. Once activated you can choose what widgets display on what pages:
The Widget Visibility module enables you to configure widgets to appear only on certain pages (or be hidden on certain pages) by using the Visibility panel.
Visibility is controlled by five aspects: page type, category, tag, date, and author. For example, if you wanted the Archives widget to only appear on category archives and error pages, choose “Show” from the first dropdown and then add two rules: “Page is 404 Error Page” and “Category is All Category Pages.”
Originally posted here
It is also possible with the Display Widgets plugin.
This is a common problem. The usual remedy is to use an existing plugin that allows widgets to be tied to pages.
The 3 most popular plugins for this are:
JetPack
Per Page Widgets
Widget Logic
I have a posts category setup called Portfolio. Currently the URL is www.example.com/category/portfolio, how would I display the same page but the url be www.example.com/portfolio?
Maybe I can create a new Template for that page, but how would I display the same results? I was thinking about there might be a URL alias setting?
Creating a template for this is a solution, but I think it will only work efficiently if you have small number of categories.
Try using:
http://wordpress.org/plugins/wp-no-category-base/
http://wordpress.org/plugins/top-level-cats/
I think there are other available plugins to do this.
I've got one task about Layer Navigation block on site, powered by Magento.
We want to make a SEO friendly URL's in filters:
Now there are links like
mymagazine.ru/category/subcategory1?manufacturer=1926
As you see - manufacturer=1926 is a GET-parameter, which just filter the products.
So I need to make this link like
mymagazine.ru/category/subcategory1/my_manufacturer
Where "my_manufacturer" is an allias to "?manufacturer=1926".
There is one way to do this task: we can make allias for all the filter pages manually with the Magento admin. But the site got a great catalloge, so this would be too tedious. I thought, that this extentions could help me, but not in my practice...
Yoast-landing-pages
Fishpigs_attribute_splash_page
If you have any thought about this problem, I would love to hear them.
Thank's for your attention!
What I did on my store is tag those links in the layered navigation with rel="noindex,nofollow" and I put the same into the robots meta tag in the target pages. I didn't want every variation of the pages to be indexed as I don't want duplicate content. Each variation of the category pages from that layered navigation ends up having the same title, meta description, and often many of the same products.