Community Forums › Forums › Archived Forums › Design Tips and Tricks › Draft posts ignore custom style sheet
Tagged: custom style sheet, post drafts
- This topic has 9 replies, 3 voices, and was last updated 7 years ago by Andrea Rennick.
-
AuthorPosts
-
November 16, 2017 at 8:53 am #213639dpalmeParticipant
I have included a custom style sheet in the header (simple hooks), but I've noticed that post drafts are ignoring or at least not seeing the custom style sheet. Is there an easy way to fix this?
November 16, 2017 at 2:43 pm #213649Victor FontModeratorYou need to publish the post to have it show up on the site, otherwise you are only viewing it through admin CSS.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?November 17, 2017 at 7:38 am #213665dpalmeParticipantThat seems so backwards to me, part of the preview is to see what a post will look like before its posted.
November 17, 2017 at 8:55 am #213673Victor FontModeratorThe current WordPress editor has a lot of shortcomings. When WordPress 5.0 is released next year, Gutenberg will be the default editor. The entire content entry landscape is going to change. If you install the Gutenberg plugin, you'll see what the future holds.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?November 17, 2017 at 12:47 pm #213682dpalmeParticipantOk so its still not working. I published a post and its still not picking up the custom CSS. I have added code in the genesis simple hooks to output a specific menu and header, but on the posts its ignoring it.
The three hooks I'm using are as follows:
wp_footer
genesis_before
genesis_headerSuggestions on how to fix this?
November 18, 2017 at 5:33 am #213705Victor FontModeratorYou're confusing me. A specific menu and header is not CSS. Headers and menus are PHP. And if you want a specific header and menu on a post, you have to remove the current header and menu and replace it with the new. All of this has to be wrapped in the is_singular() conditional.
If you really are talking about CSS, you don't use Genesis Simple Hooks for this. And you certainly would use a style sheet in genesis_before or genesis_after. Please try to explain in more detail what you are actually trying to do. What do you want to happen when viewing a post?
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?November 20, 2017 at 7:08 am #213782dpalmeParticipantI have CSS that formats the page, the formatting is being ignored on the actual blog page.
November 21, 2017 at 9:35 am #213827dpalmeParticipantI have the following showing up in the single blog page:
<link rel="stylesheet" type="text/css" href="http://www.palmeacres.com/styles.css">
I checked the source so its there, but in the post itself I have the following:
</p>
That styling is being ignored completely. I know it works because I'm also using in on a page and that is displaying just fine.
November 21, 2017 at 9:35 am #213828dpalmeParticipantcrap it posted the image and not the code sorry:
<img style="float: right; margin: 0px 0px 20px 20px;" src="http://www.palmeacres.com/wp-content/uploads/2017/11/hereford_herd.jpg"></p>
in the image you will notice its right justified and smaller in size. However the blog post shows the image as large as the page itself.
November 22, 2017 at 1:22 pm #213877Andrea RennickMemberWhy not just add page specific styling with page classes to the existing style sheet?
Adding another style sheet to load is inefficient.
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.