Anonymous User 357386
(@anonymized-357386)
Multisite support is already present in latest release (see in changelog) 😉
Thank’s for this quick response.
Yes i know that you now support multisite, that’s why i ask. My question is, if you can make an admin option to change the stylsheet path from
$css_url = plugin_dir_url(__FILE__)."my_style".$cssid.".css";
to
$css_url = get_stylesheet_uri();
Anonymous User 357386
(@anonymized-357386)
Sorry, but i can’t understood :/
If i change:
$css_url = plugin_dir_url(__FILE__)."my_style".$cssid.".css";
to:
$css_url = get_stylesheet_uri();
i see in code this output:
<!-- My Custom CSS Start -->
<style type="text/css">
/* Plugin Author: Salvatore Noschese */
@import url('http://localhost/wordpress/wp-content/themes/***/style.css?1364493052');
/* Also known as: DarkWolf - http://www.darkwolf.it/ */
</style>
<!-- My Custom CSS End -->
but
http://localhost/wordpress/wp-content/themes/***/style.css
is already defined in source code… why i need to import again with my custom css? :/
Hi DarkWolf,
sorry my last post was a bit short. I will try again a bit more detailed:
a) Within the actual scope of the plugin, a file my_style.<blogID>.css is created and edited.
b) I woud like the plugin to edit the file style.css of the current theme stylesheet instead of editing my_style.<blodID>.css. No more no less.
c) The URI of the file style.css of the current theme stylesheet can be retieved by the WordPress function get_stylesheet_uri().
d) My question is, if you could add an admin preference which makes the plugin to switch from behaviour a) to b).
Anonymous User 357386
(@anonymized-357386)
my_style.<blogID>.css is only for source code in page/template (like a cache from database)… but in admin panel “my custom css” (view and edit) work directly from database. Then, i can’t change with get_stylesheet_uri() :/
Why don’t maintain a clean “original” theme stylesheet and use “my custom css” only for some customization?
–
I’ve make “my custom css” for this… don’t touch theme and put custom code in plugin!
Hi again,
i will have a closer look into the source code of your plugin and will come back here with some ideas.
As i already mentioned in my first post: a lot of WordPress Multisite admins would love to have such a solution.
Cheers
Anonymous User 357386
(@anonymized-357386)
Sorry winball… But i think this require a separate plugin (really, is a different structure and a different idea). No more complicated… I think i can make without problem.
Hello,
I found this post interesting.
I have created a multisite “SV” and created other sites below :
sv/design
sv/tradel
sv/tradeleng
But the style.css is shared for all I guess as I cant modify and edit the positionating of the elements in the page because Im not abble to ediut the css files. Not even the php pages.
When Im working with a specific design it is needed to move the elements of the design like icons, menu or photos. IF I dont have access tot he css files I can+t male a difference in the design of any of my personalized designs.
DO you have an idea how could I get these changes doe? or is not possible under “multisites”
Thank you so much for your support.
Anonymous User 357386
(@anonymized-357386)
with my custom css you can see rule for all (sub)website… maybe you can fix in all website and put a comment to all admin to explain “don’t touch this line… (this fix template)”.
–
my custom css is to put rule in css for single website… not in entire community blog (but any webmaster can change in his blog).