The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Magento WordPress Integration
[resolved] Managing WP/Magento CSS (style.css and styles.css) (4 posts)

  1. KevEd
    Posted 3 years ago #

    Hi, Long intro to basic question....
    I started 'cleaning up' the inconsistencies between the CSS layout in the 'blog' pages and the Magento pages - some elements were not aligning correctly and wrong fonts were being called on some parts of the blog page.
    I found some elements were using style.css from WP's TwentyThirteen theme, but my main (magento) site used strictly Magento's styles.css file. I renamed Twenty13's css file to prevent the PHP files using it - all the style defaulted correctly to my Magento theme's CSS. Things looked much better but it still wasn't perfect.

    My question is: Is there one WP PHP file which specifies the path for the other files to find the CSS file? I'd like to ensure all WP references to a css file use my Magento styles.css file in the directory above WP.
    Which WP file do I edit? And do I need to use an absolute or relative path?


  2. jamesckemp
    Plugin Author

    Posted 2 years ago #

    Hi KevEd,

    I found this question very confusing - I'm not 100% sure what you're asking!

  3. KevEd
    Posted 2 years ago #

    Hi James,
    I'm not very expert at tracking down which of WP's php files dictate the path to the CSS file(s) it uses for a theme, I want to ensure that 2013 theme uses the custom Magento styles.css. Do I need to edit all mentions of css paths or is there one 'master' include file which points to the css file for theme to use?

  4. jamesckemp
    Plugin Author

    Posted 2 years ago #

    Your CSS styles in WP will be loaded either in header.php or using a function in functions.php.

    However, this probably isn't the right place to ask as it isn't really relevant to MWI. You may get more help on the main support forum.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Magento WordPress Integration
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic