Changed all 15 SayPro Templates

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 👇

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.


1. Using CSS for Global Changes (Recommended for Speed and Efficiency)

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.

Steps:

  1. Go to:
    Appearance → Customize → Additional CSS
  2. Add the following CSS: /* 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:
    • The general content wrapper for all pages.
    • WooCommerce content areas like single product pages and shop pages.
    • Custom plugin content (you may need to adjust the selector .custom-plugin-content based on your plugin’s HTML structure).
  3. Click Publish.

2. Using the Site Editor (For Full Site Editing)

For a more visual approach, particularly for templates that use the Site Editor, follow these steps:

Steps:

  1. Go to:
    Appearance → Editor
  2. Open the Templates section and choose the templates you’ve modified (e.g., Single Product, Archive, Page templates).
  3. Select the Group Block or the container holding the main content.
  4. In the right-hand sidebar, under Dimensions, set the Width to 80%.
  5. Save your changes for each template.

3. Check for Custom Plugin Template Adjustments

If your custom plugins have separate templates (e.g., custom layouts or WooCommerce product display templates), you may need to:

  • Inspect the HTML structure of those plugins’ templates.
  • Target the specific wrapper or content block using the plugin’s custom class or ID and apply your 80% width using either the Site Editor or CSS.

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.


4. Consider Using a Child Theme (Optional)

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:

  • This way, you can add custom templates or CSS without worrying about losing them during theme updates.

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!

Index