TylerShaw
Forum Replies Created
-
Forum: Reviews
In reply to: [Page Specific Stylesheets] Good Idea, but …Hey Sven,
This is something people have brought up before but I can’t seem to get any additional information that would allow me to find the actual cause of the problem.
The plugin itself is quite simple and I see no obvious issues with the code.
You mentioned cleaning up post revisions and autosaves when it occured, so I’ll definitely take a look at that and see what I find.
Forum: Plugins
In reply to: [Page Specific Stylesheets] I get miss my styles when I reopen page pluginAny additional info on the issue? Were you doing anything you think may have been related?
I’ll try to figure out the source of the problem but I don’t have a lot of information to work with currently.
Forum: Hacks
In reply to: How can I manually reload the Media Library with custom arguments?Hi tortmorten,
I appreciate the response!
I’m aware of that filter and it doesn’t appear that it’s going to work for this case. Using that filter allows me to modify the arguments server-side, after they’ve been received.
However, I need to submit brand new queries for attachments from the client side of thing. So I need a method of customizing the arguments, sending the request off to the server, and then refreshing the attachments being displayed without a page reload.
This functionality exists already, but I do not see where the code is to replicate it. For example, when you type in the search bar on the Media Library page, it fires ajax requests off to the server, reloading what attachments are shown.
When inspecting the request in the Chrome Developer Tools, you see the following: http://puu.sh/irJHX/203ed26dd7.png (when typing the word “test” into the search bar)
Thanks again for your response! I’ve been trying to find an answer to this for a while.
No problem at all! I just wanted to make sure I understood clearly before giving a proper response.
That’s strange – I apologize that the plugin is giving you issues on a regular basis. I haven’t experienced that in the past and honestly, I’m not certain what could be causing a random data loss.
Overall, the plugin’s interaction with the database is quite minimal. Here is a brief overview of how it works:
When a post is saved, one of two things happens:
– If the stylesheet textarea has content, that content is saved, overwritting the existing styles.
– If the stylesheets textarea is empty, that record is cleared from the database (to prevent empty records from polluting the database).If you’re a technical type of person, here’s the source for that.
That’s really the only time the database is touched (besides installation/uninstallation & settings), and the deletion of a record only occurs if the textarea is empty when the
save_postaction is triggered.I will keep and eye open for this. Please let me know if you gather any more details. Sorry I can’t provide a fix at this moment! I will make sure it gets sorted out once I know how to reproduce the issue.
Thanks!
Forum: Plugins
In reply to: [Page Specific Stylesheets] Having a little troubleSorry I didn’t get back to you sooner. You would think I’d get a notification or something when someone posts a question!
Glad you got everything sorted out!
Hey Aoutlaw,
Thanks! Sorry about the delayed response, you’d think I’d get a notification or something when someone posts a question!
I never noticed that. I am debating on what you mean specifically, so please clarify:
Is the problem:
1. That styles are deleted when you restore a previous revision.
2. Styles are not saved with each revision. – For example: If you revert to revision 25, you expect the changes to switch back to what they were at the time the revision was saved?Please let me know what you mean so I can give a better answer for you! Thanks.
Forum: Reviews
In reply to: [Page Specific Stylesheets] Best OptionThanks!
Currently, there isn’t any option for adding styles to page categories. I am open to that idea though.
My initial thought is that the editor box could be added to the Edit Category page. I’ve added this idea to my list to look into.
Forum: Reviews
In reply to: [Page Specific Stylesheets] Works GreatThanks 🙂
Forum: Plugins
In reply to: [Page Specific Stylesheets] page specific stylesheets plugin – does not work.Hey,
Sorry about the delayed response – I didn’t notice you had posted.
Could you provide me with some some more details?
– What styles did you add to that post?
– What outcome are you expecting, and what specifically is happening?
– Are you able to verify the CSS is not being overridden by CSS from somewhere else?
– Is the plugin working on other pages, just not in this case?If the plugin works anywhere else, then I suspect the issue is with the CSS itself. CSS in another file could be overriding the CSS you type into Page Specific Stylesheets.
Without any further information, I would recommend adding a unique id to your table, and then referencing it with that from within your styles.
Please see my example here: http://codepen.io/anon/pen/pvyxrv
I’d love to help you out once I get some more information about the problems you’re experiencing.
Forum: Reviews
In reply to: [Page Specific Stylesheets] Works pretty well now… thanks!I’m glad you like it! Thank you for the kind words, and not a problem!
Forum: Reviews
In reply to: [Page Specific Stylesheets] Works pretty well now… thanks!Hey hartmutnz,
I just wanted to let you know that I’ve added support for custom post types.
There is now a settings page, accessible under the Settings Menu, and this page lists out all available post types in your site. You simply check the ones you wish to add the Page Specific Stylesheets meta box to and you’re good to go. Page and Post are enabled by default.
I’ve tested it specifically with products from WooCommerce, and it adds the styles to that products page as you would expect.
I have not added support for categories at the moment, but I’ve added it to my list and will look into it in the future.
Hopefully this update is what you were looking for!
Let me know.
Thanks 🙂
Forum: Reviews
In reply to: [Page Specific Stylesheets] Works pretty well now… thanks!Hey hartmutnz,
I apologize! This has been on my to-do list, but I have been fairly busy. I am planning a version update that will include a settings page, allowing for the functionality you desire.
I’ll post back here within the near future and let you know when that functionality has been added.
And you’re welcome 🙂
Forum: Reviews
In reply to: [Page Specific Stylesheets] good oneI appreciate the feedback! 🙂