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
- get product attributes for current product and store it in a variable
- How to get Woocommerce Variation ID? [closed]
- functions.php not adding css to website?
- How to override a non pluggable and non hookable function in a WordPress parent theme?
- How to display product cropped thumbnail (150×150) for WooCommerce product categories
- Add to checkout total lines an additional line below shipping in WooCommerce
- Using PHP to toggle stylesheet and header image, set in cookie
- How To Change The Html of Products filtration sidebar in Woocommerce?
- How To add custom radio boxes to WooCommerce Billing page and change total price by this field?
- WooCommerce: update custom fields after checkout validation failure
- Trigger Woocommerce New User Email
- Inject PHP code into “sidebar-content” – code before my WooCommerce sidebar widget?
- Add the Name of Products Ordered to Admin New Order Email WooCommerce
- How Display Posts on category
- get current product name in functions.php
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- WooCommerce Webhooks not firing because of error in wp-includes/meta.php
- Sum the total amount of a specific product purchased per user and display in table
- Incorrect MIME type for assets with Valet
- Which is the correct way to conditionally enqueue a CSS file?
- echo something inside a shortcode
- Function returns text instead of html [closed]
- require_once() if a product in woocommerce contains a tag [closed]
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- Website completely messes up when logging out
- Child Theme’s Read More Text
- Conditionally remove comments and post meta in functions.php
- How to work Woocommerce pagination inside shortcode?
- How to restrict shipping zone in a specific interval time
- Display custom field value in woocommerce variable product via jQurey
- Change the URL of an image from wp_get_attachment_image_src for Product Posts based on Category
- Combine change Email WordPress and woocommerce emails template
- Proper way to remove html code on child theme
- get orders of today’s date
- product_type_options get saved value [closed]
- Discount in the specific product title using keyword ( Woocoommerce )
- Place product field value as variable in php
- Change WooCommerce currency programmatically on AJAX request
- Make a full-width wordpress page
- Bring Font Awesome icons inside menu A tags
- How can I add another row to the total field in WooCoommerce cart, checkout and recipe mail?
- Put a span class in the shortened product title
- Add missing alt tag to featured images for “storefront” theme
- How to limit functionality of a woocommerce plugin to only certain user role?
- Sort WooCommerce data with WP-CRON?
- Use PHP code in Menu Admin Section
- Need Quick Help With Product Category Page
- Highlight Single Page Ancestor
- Relative post date in recent posts list
- Woocommerce Price Text
- wp add inline style in loop
- Display pages from specific page template
- Sidebar doesnt get updated?
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- How do I update product shipping using PHP in WooCommerce?
- How can I edit the WooCommerce Mini DropDown Cart to read as follows
- Predefine Magazine Style Layouts
- Add a “Next Post” & “Previous Post” styled button manually to a post
- 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
- PHP Add products to cart with WooCommerce Addons
- Adding extra cost to woocommerce flat rate based on shipping zone
- Woocommerce product search result page layout
- Woocommerce, via php snippet: How to get product price and divide it by a number from an attribute, and then display the new price via php/html?
- WooCommerce: Custom dropdown for variation selection
- WooCommerce coupon codes in order overview HPOS