I'm trying to change the look of my website but while doing that, facing some problems.
Now, different classes and id's in style.css apply to all pages on my theme.
I want to overwrite those styles elements (only 2 or 3) on my homepage.
Now when I'm adding style in my index.php file, they are not being applied.
I've already tried marking them !important
Code snippets:
I've added this code in my index.php file before the <?php
code starts
<style type="text/css">
#main {
margin-left: 0 !important;
}
.container {
width: 95% !important;
}
</style>
But they are still not affecting the look of my homepage.
I've confirmed that the class and ids I'm using are perfect and are present in style.css file?
So, can you please guide me how to overwrite these element stylings only on my homepage?
OR
If I'm doing something wrong in the above process?
<php
blocks all over the page, post your code in more context.