I am facing an issue while overriding Apigee responsive theme on dev portal. I have the css file and layout in html format given by the UI team. I performed the following steps to create the subtheme
Copied the apigee_responsive_starkit folder into sites/all/themes
Renamed the folder and info file inside it.
Placed my css (screen.css) and js files in js folder
Gave stylesheet and javascript references in info file
Copied page.tpl.php from apigee_responsive theme folder to my subtheme’s template/pages folder
Modified page.tpl.php to include logo and header menu as per the required layout
The problem i am facing is that my screen.css has bootstrap classes, but those are not getting applied on the page properly, rather it is taking bootstrap classes from the apigee_responsive theme. I am not able to find a way to override the bootstrap classes that are already present in the base theme.
This is a blocker for us. Any help/guidance is appreciated.
I am assuming you are talking about applying the custom class names on the markup elements in page.tpl.php. Then we have already tried this, it did not work.
The problem i am facing is that my screen.css has bootstrap classes, but those are not getting applied on the page properly, rather it is taking bootstrap classes from the apigee_responsive theme.
If you are referring to .css classes that are provided by bootstrap.css, then… it should just work. Right? Those classes don’t get modified. I’m pretty sure you would not have modified them, right? It won’t matter where those .css classes get loaded from. Am i right?
Maybe you are still seeing the old apigee_responsive theme? There’s one key step you did not include in your 1..2..3…4.. list. Have you selected the new theme as the default theme? If not, then the devportal will continue to use the apigee_responsive theme.
Assuming you will be writing your own css using SASS based on bootstrap, the best way is to exclude the bootstrap from apigee theme using a hook in template.php
This way you can exclude css from base theme and add your own css file to theme.info file - which should solve your problem.
Solution in brief - Exclude bootstrap from base theme and add bootstrap to your theme. If you add the above hook and add the file info to theme.info, the problem is solved.