I really hope someone can help me with this, it is driving me mad. I have installed WooCommerce on an off-line test site on a default theme (TwentyThirteen) and it works and looks great.
When applying it to a theme I have developed however, the styling of the products completely break and display in a vertical list, with the links styled as per the rest of my page.
I've tried all the instructions on the WooCommerce website to integrate it to my theme (both methods of either using a catch all page, or adding hooks), and all of this still results in the same broken layout.
Now, through many hours of looking in to this and comparing my theme to that of TwentyThirteen, I have noticed that when I render the page, the '
ul and li tags of the products on TwentyThirteen theme are using woocommerce.css, and on mine just the styles I had already set.
So for some reason TwentyThirteen theme can look at the woocommerce stylesheet, and my theme can't. All the settings for WooCommerce are identical as I am just switching themes.
I have declared my style.css in my header but nothing else regarding enqueuing scripts etc. Is this where I am going wrong? And if that is the case could someone point me in the right direction on what to put either in my header or functions.php please to make it work? I seem have no trouble with any other plugin I use on my own theme.
Thanks for your time reading this and any advice you can give me. :)
Make sure you have body_class() into your <body> tag like this :
<body <?php body_class(); ?>>
Related
On my website (www.peoplesarms.com) home page everything is fine. What I can't figure out is that when I go to Contact Us, Cart, My Account, potentially Checkout though it shows the same screen as cart at the moment because no shop items there yet, there is an extra (not useful) menu showing HOME >> CART or HOME >> CONTACT US
I want to get rid of that, but I can't seem to figure out where that is coming from.
All I want there to be is the main menu right under the logo.
Any help will be appreciated.
Thanks.
So in this case the breadcrumbs was coming from the theme. Not sure why it did it that way, but they did. The solution was to alter the css to display: none; on #breadcrumbs id's. The reason it didn't appear to be working was because the hosting service had turned on the cached pages function and wasn't serving the altered css file. I banged my head on that for about 2 hours trying for all my ability to understand why it wasn't working.
It is known as breadcrumbs. You are using online-store theme with kirki customizer plugin with comes up with an option to enable/disable it from backend.
To disable to go to
Appearance > Customize > WooCommerce > Breadcrumbs(uncheck the button)
It should have worked but what I saw maxstore theme does not care about the above steps so you can fallow any of the below methord.
Method 1: Modify the function
Removed all the code inside the function present in wp-content\themes\maxstore\functions.php
function maxstore_breadcrumb() {
return '';
}
Method 2: Comment out the function from template files
You need to comment out maxstore_breadcrumb(); from the below listed 4 PHP file in maxstore theme.
wp-content\themes\maxstore\archive.php
wp-content\themes\maxstore\content-page.php
wp-content\themes\maxstore\content-single.php
wp-content\themes\maxstore\index.php
Please Note: If you 'll upgrade the theme you might have to follow this steps again.
Hope this helps!
I'm new to WordPress and actually repairing a page as a favour. The page was originally created by an inexperienced developer which is why it has its faults.
My main concern is that I don't seem to get any of the plugins to work. The page has a custom theme. I tried switching to a previously uploaded theme and all the plugins worked like a charm on that.
The client seems reluctant to abandon the custom theme and short of having to take it apart piece by piece I'm trying my luck here.
Both wp_head() and wp_footer() are called and seem to be in the right places, wp_head() right before the </head> tag and wp_footer() right before the </body> tag.
What am I missing?
This is a very general question, but here are some starting steps to try and see how you get on...
In wp-config.php add or alter the following: define('WP_DEBUG', true);
This enables debuging to screen and will throw up any errors.
I would still advise you then try the plugins one by one - in theory once you get one working then the others should be ok. There is more to a theme than just having wp_head() etc... make sure the loop is in place and things like get_sidebar(). Compare whole pages to those of a working theme.
I’ve installed responsive theme and responsive master child also.
I’ve designed a custom front page design and I want the same design on the entire website.
Here is the website:
http://fulnet.org/
and here is the website pages.
http://fulnet.org/what-we-do/
Basicly I want to modify the header menu area and the footer.
I dont want the sliders and the rest only the menu and the footer area.
PLease help me I’m new in working with wordpress and I’ve spent the last two weeks trying to made this changes, but not succeeded.
Thank you for your time and for help,
Ionut
If you want the header and footer to be accessible on all the pages, just include the wp_header & wp_footer on your pages files.
On the one hand, you have a static html page: http://fulnet.org/.
On the other, you have a Wordpress Theme: http://fulnet.org/what-we-do/
What you need to do is to make the neccessary changes in your style.css inside your Wordpress Theme - wp-content/themes/responsive.
I'm in the process of customising a theme (styling, css, etc). However, I ran into a small problem, basically I wan't to include an introductory message at the top of the home/index template, and then have it as an option(text area) in the theme options panel. How do I go about doing this. Sorry for the noobish question, haven't found any straightforward solution yet. Thanks.
This is a significant customization that will require changes to the PHP code for the theme. You need a PHP programmer, preferably one who knows WordPress.
I'm customizing the Wordpress Admin site to suite my needs and there are several things I want to remove and customize (menus, etc...).
I noticed on the DashBoard section called 'Right Now' there are several things I don't need there. For instance the CHANGE THEME button and the wordpress version and theme. I found in the source dashboard.php where these are rendered, but rather than edit the source, can I just make a function that intercepts and changes this so it doesn't render them?
I also want to remove the DISCUSSION section and some of the counts for CATEGORIES, TAGS, and PAGES.
Is there a way to go about this? Thank you!
Hmm I think I solved this myself, although I'm not sure correctly. Using firebug I was able to find the class names and element ID's of the version and CHANGE THEME button and the version and theme
I added this code in my functions.php:
function wpc_remove_admin_elements() {
echo '<style type="text/css">
.versions p {display:none !important;}
.versions #wp-version-message {display:none !important;}
</style>';
}
add_action('admin_head', 'wpc_remove_admin_elements');
This added some styling in my header to hide these elements.
Is there a more efficient way to do this or am I going to be ok? I still don't know how to hide some of the Content and Discussion counts in the RightNow dash.