I added a jquery to the footer.php in the child theme. Within that I listed all the product pages I wanted to adjust the css for. This is not ideal for sites with large content, in this case there are only two products.
For the sake of larger sites, there could possibly be some wild card at the end of the url.
<?php //if(is_post()){ ?>
<script type="text/javascript">
jQuery(function(){
if(window.location.href=='http://mywebsite.com.au/product/myproduct/')
{
jQuery('.images ').remove();
jQuery('.summary.entry-summary.portrait-screenshot ').css('width','100%');
jQuery('.cart ').css('width','70%');
}
});
</script>
<?php //} ?>
Related Posts:
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Understanding child theme functions.php
- Want to create Child theme, but already edited Parent theme css files and some php files
- Parent theme CSS overriding child CSS rules
- How to style options page in dashboard?
- two columns of posts on homepage, one of them “favorites”
- Custom Background by Page IDs
- CSS change in woo commerce Place Order Text [closed]
- How to edit background color of only one sidebar?
- Inline CSS header style priority function.php Child (no enqueing I think)
- Why would the child theme load in the Customize preview, but not on the site itself?
- PHP function for horizontal Woocommerce thumbnails and badges
- Use CSS tag inside PHP code
- How to hide a div section when user is logged in, in single product woocommerce
- How to locate parent theme functions and add functions to my wordpress child theme?
- How to let mobile navigation menu close when link is clicked?
- how to add functions to my function.php using a child theme?
- Add Shortcode to ::before class
- Hot to edit WooCOmmerce dashboard?
- random woocommerce categories are not showing when count enabled?
- Display specific main Sub Nav on Woocommerce product pages
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- Where to find the html for WordPress site? [closed]
- Modify arguments for parent theme’s `wp_register_style` via child theme
- Child theme not working properly
- How to add margin underneath woocommerce total price amount -> productpages
- Child-theme suddenly stopped working [closed]
- How to create a container in php then customise it in CSS
- WooCommerce Checkout Cart [closed]
- Childs PHP files not overwriting Parent’s PHP files
- Woocommerce get selected shipping zone id for the current user
- Is it possible to disable a function of a parent theme?
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Add footer.php to WordPress child theme
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- WooCommerce – Display variation custom field value [closed]
- Woocommerce HTML email option unavailable
- How to trash multiple post/product programmatically
- OrderItem get_total() returns lower value than $order_item->get_product()->get_price() * quantity
- Put CSS inside a PHP file and include it the right way
- Missing sidebar parameter “fix” – before_content
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- WooCommerce – Reset quantity input field when variation changes
- Custom Text in WooCommerce Order Processing Email Based on Products
- Automatically remove a canceled order in Woocommerce
- How to use my style.css file outside of wordpress subdomain?
- Can I install/embed WordPress on a ‘single page’?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Different Minimum Order Amounts based on Shipping Zone [closed]
- Displaying custom taxonomy on WooCommerce product page
- Change “add to cart” button color based on Woocommerce product category [closed]
- Add to cart function not working for first product when cart is empty [closed]
- proper way to add css using functions.php?
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- get taxonomy thumbnail and use it as a variable in code
- Single Quotes in .php file doesn’t load website
- PHP in CSS file?
- Last class on last headline?
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to upload WP user avatar on woocommerce account page [closed]
- How to Change CSS Colors from Custom Plugin Settings Page
- How to relocate paypal button gateway on checkout page in woocommerce
- Warning: printf(): Too few arguments in helpers.php file
- How do I run code every 24 hours?
- Woocommerce Product_cat for current category page
- Need advice on theme customizer and child themes
- CSS images don’t show up with bloginfo
- Woocommerce. Get a list of products in the current category on the archive page and product page
- how to changes mobile menu toggle breakpoint in WordPress
- How can I enter on the Thank you page in woocommerce the discount code I assigned to the product category?
- Woocommerce append shipping method form
- remove_action from parent theme using child theme functions.php
- How do I check if a product is in two categories?
- oceanwp+woo mobile cart sidebar text
- php code for outputting a custom page in my account
- Hide specific shipping methode depending on day and time of day
- Adding custom field to product category and show it to shop/category shop page
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Remove span tags from WooCommerce Downloads page
- Can’t display anything through homepage text editor
- Edit woocommerce_product_archive_description using hook
- How to empty price of simple and variable product when product changed into out off stock
- How to create loop inside wordpress function?
- If i use a child theme to add new code blocks to header.php, how does it get inserted in the right place in parent’s header.php?
- How to echo a PHP code into WooCommerce variation product?
- Get Billing Email from WooCommece Checkout and Pass to Fullstory JS
- Woocommerce custom attributes list help
- Position a repeated article blocks
- Global filter not working
- WooCommerce remove_action and add_action [closed]
- WooCommerce – Print Processing orders [closed]
- Hide cart when empty [closed]
- WordPress – Image href for home menu nav not working
- WP_Nav Highlight Parent Issue
- If I define a variable in header.php, how do I make it available to templates?
- Parse error: syntax error, unexpected ‘}’ in
- Warning: Attempt to read property “term_id” on int – Woocommerce
- How call WordPress shortcode inside function file
- strict custom php script on specific product category [closed]
- Woocommerce product variations getting created without attribute values selected