Hello everyone!!
Today i have a an epic ethic question.
The_question_itself: ¿I'm doing it wrong using 2 Stylesheet files in my theme?
The_explanation:
Imagine, i'm working on a theme where the posts in "index.php" are like:
- a 200x600px Post Wrapper
- a 200x50px Title & excerpt thinghie (float left;)
- a 200x530px Image Thumbnail (mady by customflieds and float: right;)
Well. once i click on a post to read the full content i would like to remove the thumbnail and make the tittle and the content thinghie to be 600px width.
Here comes the solutions i found:
A- Create new Class Divs for the new displaying of the post and add its new style on Style.css
B- make "Single.php" to target a new Stylesheet file called "single-style.css" and then just modify the values i need for the new content display.
Thoughts:
I dont know wich option is the correct one.
Option A seems to be the basic and tipical option.
But B, seems to be more logical and ethic for me, as i wont need to put code that is not going to be used in index.php and viceversa in single.php.
Each *.php file will have it's own css code.
I tested it a bit and if i create an empty single-style.css and visit the single.php page it seems to still reading the style values i used in the basic "style.css" file. So if i modify specific parts of the "style.css" file in the new "single-style.css" file. Everything seems to works fine. Whatever i dont modify, stills being displayed as normal. Whatever i modify, changes...
Is that correct? it's ethic?
Any idea?
Thanks in advance!!