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]
- Live Preview while customizing is not showing the updates while editing in WordPress
- Sort Woocommerce Products with Numbered Titles Numerically
- separating column the variations from the add to cart button woocommerce
- WooCommerce – Email admin with new user details
- Plugin CSS not enqueing
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- Automatically remove a canceled order in Woocommerce
- how to remove metadata from the posts of my blog?
- Call global variable array() in woocommerce child/template
- Remove price from Woocommerce variable product dropdown menu
- Theme Options Page – User Updates Logo
- How to use my style.css file outside of wordpress subdomain?
- Adding nofollow to a PHP generated Nav
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- Selectbox in admin panel function linking to CSS
- Can I install/embed WordPress on a ‘single page’?
- Using if/else statements with output from theme options
- Is there CSS to expand the gallery limit on Index Pages?
- Automated Cart Update With Alert Box Each Time
- Two Different Links for Same Product – WooCommerce [closed]
- Issue adding sub category programmatically
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- dividing sub-categories by parent category – WordPress
- Show prices with tax in Woocommerce Mini Cart [closed]
- Woocommerce product variation backorder
- Status 400 for AJAX POST Request with admin-ajax.php
- Problem with custom plugin using AJAX to pull info from php file
- Woocommerce hook run after an Order been created through REST API
- How can I apply_filters from inside a function?
- Get and insert order email address to the PHP template inside HTML text
- How to design a table based on css values set from admin/dashboard
- Modify HTML structure of fields in woocommerce checkout form
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Auto-update products after they were published – Woocommerce
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Reload part of checkout on changed shipping method
- How to get all shipping rates and costs without session in woocommerce?
- Display a specific category of products in shop page and disable code for specific actions
- If no products are on sale – hide ID or class
- Woocommerce related product text
- Woocommerce api: create product with images – bad request
- Trying to build simple deposit code that hooks into woocommerce
- WooCommerce Webhooks not firing because of error in wp-includes/meta.php
- Different Minimum Order Amounts based on Shipping Zone [closed]
- do search in two site and show the result in first site
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Add a product to checkout via form
- Trying to place a custom field after the total section in the checkout page in woocommerce
- WordPress default Search function inconsistent in WooCommerce Product Titles
- Which field should I edit to make the checkbox marked by default?
- Displaying Woocommerce Product Category in WordPress
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- wordpress + woocommerce display product with additional information [closed]
- how to fix error “called incorrectly, should not be accessed directly”?
- Function works when I don’t login to WordPress but when I login then it doesn’t work
- How to auto fetch customer details in Woocommerce in checkout page
- Displaying custom taxonomy on WooCommerce product page
- Sum the total amount of a specific product purchased per user and display in table
- Change “add to cart” button color based on Woocommerce product category [closed]
- How can I get the values of my WordPress $wpdb query in Jquery?
- Incorrect MIME type for assets with Valet
- How to display pictures from database?
- How can I pass a custom/dynamic product to the Woocommerce cart?
- Add to cart function not working for first product when cart is empty [closed]
- I want to add custom add to cart link [closed]
- How to make products with no cost in WooCommerce
- How to add condition in wordpress loop? [closed]
- Woocommerce : Can’t get product info in loop
- WooCommerce custom product dimensions