Is the HTML processed before publishing?
-
The finished page seems to contain breaks (
) where I’m not putting them.I want to force all
- to start with ‘1’ but this is not happening. Nested
- start with A then a then i then a then a then a, etc.
I am specifying- but that is not happening.
See https://rossmarsden.wordpress.com/The blog I need help with is: (visible only to logged in users)
-
Hi rossmarsden,
I’ve checked the content added to to “Descendants of Godfrey MARSDEN and Elizabeth SWINSCOE” and there is some extra formatting and HTML tags visible in the HTML tab on the editor. This can happen when text is copied and pasted from software like Word.
Please try using the “Clear formatting” button to remove any invisible formatting that may be causing extra page breaks:
https://en.support.wordpress.com/visual-editor/#clear-formatting
Come back to me if that doesn’t help.
-
Hi gemmacevans,
I pasted the HTML from Notepad++. Yes, the HTML source of the published page contains some artefacts like
<!–and I will attempt to remove them as you suggest.
I can probably inspect the HTML more carefully and look for <p> tags for instance.I also asked about the numbering (lettering) of nested
<ol>tags. What is happening there? Why is my nested<ol start="1">lists having non-numeral ordinals.I am wanting to use my own stylesheet. How can I do that?
A<style> </style>section in the body just gets ingnored and removed.Cheers.
-
The “Clear formatting” button (in Visual tab) does not clear the “<!–” elements out of the HTML (as seen in the “view page code” in the browser). Even deleting the corresponding characters in the HTML tab, and typing
<!-does not help at all.In the Preview, all the nested ordered list items are numerically numbered, but in the published page there is a mix of numbers, upper and lower case letters and lowercase roman numerals for the ordinals. Weird.
Can you recommend a blog space that does not have these idiosyncrasies?
There is still the question of custom style sheets.
-
Hi Ross
I also asked about the numbering (lettering) of nested
<ol>tags. What is happening there? Why is my nested<ol start="1">lists having non-numeral ordinals.I’ve come across this in the past. There are a couple of things going on.
1. The start attribute on the
<ol>tag simply tells the browser where to start counting, regardless of the numbering system (1, i, I, a or A). To define the numbering in your HTML you would need to use the type attribute, e.g.<ol start="1" type="1">2. However, whether that works on not will be influenced by your CSS stylesheet. Currently, I can see that your theme’s CSS is very specifically defining the numbering system for each level of indentation, e.g.
ol ol ol {list-style: lower-roman;}. To overwrite this you would need to add your own custom CSS, which brings us to your next question…I am wanting to use my own stylesheet. How can I do that?
A<style> </style>section in the body just gets ignored and removed.To be able to add custom CSS you would need to upgrade to a WordPress.com Premium plan, which costs US $8.00 per month, billed annually. See https://en.support.wordpress.com/custom-css/
I hope that helps
Gareth
-
Thanks pottingshed, that is helpful.
I did not see the type attribute when I looked up the ol tag at W3 Schools.
The thing about Cascading Style Sheets is that the last style specified is the one that applies. So if I have<ol type="1">that is what will be used regardless of what WordPress’s style is.I also want some weird background colouring so I will try that too.
Cheers. -
- The topic ‘Is the HTML processed before publishing?’ is closed to new replies.