Your cart is currently empty!
SayPro is a Global Solutions Provider working with Individuals, Governments, Corporate Businesses, Municipalities, International Institutions. SayPro works across various Industries, Sectors providing wide range of solutions.
Email: info@saypro.online Call/WhatsApp: Use Chat Button 👇
Written by
in
If you’ve already changed all 15 WordPress, WooCommerce, and custom plugin templates to adjust their layout or appearance and are looking to refine them (for example, applying a global width of 80% to all templates across your site), you can do so more efficiently by targeting the core container or layout elements in your CSS or through the Site Editor.
Here’s a breakdown of how to manage global changes across all templates, with an emphasis on content width and ensuring consistency across your custom and plugin templates.
To target all templates and content areas, you can apply custom CSS to ensure they follow the 80% width rule globally, regardless of the template or plugin.
/* Global content wrapper - set to 80% width */ .wp-site-blocks > * { max-width: 80%; margin-left: auto; margin-right: auto; } /* WooCommerce specific content */ .woocommerce-page .content-area, .woocommerce-page .single-product, .woocommerce-page .archive.woocommerce-page { max-width: 80%; margin-left: auto; margin-right: auto; } /* Target custom plugin content containers (adjust selector as needed) */ .custom-plugin-content { max-width: 80%; margin-left: auto; margin-right: auto; }
This CSS targets:.custom-plugin-content
based on your plugin’s HTML structure).For a more visual approach, particularly for templates that use the Site Editor, follow these steps:
If your custom plugins have separate templates (e.g., custom layouts or WooCommerce product display templates), you may need to:
If you’re unsure about which selectors to use for a plugin, you can inspect the plugin’s content using Developer Tools (right-click on the element > Inspect) in your browser and target those specific classes or IDs in your custom CSS.
If you’re making extensive changes across many templates or want to ensure your customizations persist across theme updates, it’s advisable to create a child theme:
Would you like help inspecting specific plugin templates or any other aspect of your custom theme and plugin setup? Feel free to share more details, and I can assist further!