• Resolved Stingraynut

    (@stingraynut)


    Now that the editor has changed from HTML to ‘Text’ I can’t see any HTML in the post
    I ran the website through the validator and I have two stray <p> tags with no </p> – but I can’t see them to edit and correct

Viewing 10 replies - 1 through 10 (of 10 total)
  • Anonymous User 13255453

    (@anonymized-13255453)

    Is it just on this one post you have the problem on? Or is it others?

    A link to the post your having the problem on would help, that way I could run it through the validator and see where the problem might be.

    All the best,
    Ryan

    Thread Starter Stingraynut

    (@stingraynut)

    It’s on the front page, 3rd Box down .
    In the validator, where I first found the error, it shows as lines 156 and 165.
    I have removed the code, pasted to notebook and then copied back to the page and still the errors remain. I can’t see any tags in the ‘Text’ view of the WordPress Editor.
    Is there some way to edit HTML code in WordPress ?

    Anonymous User 13255453

    (@anonymized-13255453)

    My guess, going by what you’ve said so far, is that it’s got nothing to do with your post or page, but it’s something within your theme, hence why I ask if it’s on any other page or post.

    It might well just be within you themes homepage.

    If you don’t want to share a link to your site (although it would be a lot easier to help if you did), can you copy and paste the exact validation errors and we might be able to help more.

    Also let us know what theme your using.

    Ryan

    Thread Starter Stingraynut

    (@stingraynut)

    Sorry my Error Ryan, I normally add the link to my first post so thought I had this time – here it is http://www.affordableweddingsaustralia.com.au/

    It’s on the front page, 3rd Box down .
    In the validator, where I first found the error, it shows as lines 156 and 165.

    It’s not in the theme.

    This mistake occurred when I changed the content in the ‘Competitions’ box, as mentioned above. I changed it several times while adjusting how it all looked and somewhere during that, the errors slipped in.

    What is so crazy is that all I need to do is insert two closing </p> tags, but because I can’t see the html in the editor, it will be hit and miss if I place them correctly. Sure I can probably have a good guess – but it would be much better to be allowed to SEE the html.

    This probelm is not in the theme but the theme details are – “Affordable Weddings Custom Designed Theme based on Roots HTML5 Boilerplate theme.”

    Anonymous User 13255453

    (@anonymized-13255453)

    Stingraynut,

    I’m getting a different set of errors to you. I’m actually getting 11!

    What validator are you using? I’m using, http://validator.w3.org/

    What’s more none of the errors I’m getting are to do with missing a </p>, in fact it’s the opposite, two errors are saying you have two closing (</p>) but you never opened anything <p>!

    Screenshot showing 11 errors

    Screenshot showing two </p> errors

    Thread Starter Stingraynut

    (@stingraynut)

    Yes Ryan there are other errors I’m addressing, via this question

    Looks like I have misread the two <p> errors and as you say the front <p> tag is missing, not the end <p> tag.

    If I could read the HTML in the editor I would soon have seen what was wrong.

    OK

    How do I edit HTML in the wordpress editor ?

    Anonymous User 13255453

    (@anonymized-13255453)

    As far as I’m aware, this is not a function that the default of WordPress allows.

    Have you tried a plugin. Something like – http://ww.wp.xz.cn/plugins/html-editor-syntax-highlighter/screenshots.

    Or – http://ww.wp.xz.cn/plugins/wp-editor/screenshots/

    I’ve not used these myself but it looks like it might give you what you want.

    My feeling is that it’s still something to do with the theme or a plugin.

    Just out of interest, how did you get the text and images on the page?

    Is it with widgets?

    Is it with custom fields within the backend of WordPress?

    Looking at the html in chrome with “inspect element” it looks a lot like it’s been handed coded, (even though I know it hasn’t been).

    Hope the plugins work.
    Ryan

    Thread Starter Stingraynut

    (@stingraynut)

    Hi Ryan I’ll check out those plugins

    The page is called ‘Home’ and the text is added to the page via the usual WordPress text editor – which is why I’m asking how to view the html.

    I’m not familiar with the Roots theme. I had a brief look at it, appears to be written for coders rather than a WYSIWYG style of theme builder. When I took over I noticed there was some inline css and images not being called from the standard folder etc. I’m just trying to fix up the validation faults.

    I don’t feel this topic is resolved. Removing the possibility of viewing html in the wordpress editor has to be a retrograde step. Having both visual and html views covers both sides of editing and surely that is better than hiding the html so someone can’t even fix a small <p> problem.
    I don’t think there’s any use carrying on here. I’ll mark this as resolved.Thanks for trying to help.

    The WP editor has not changed – TEXT is exactly the same as HTML was – just the label was changed. No HTML is being hidden.

    The HTML is generated from various places (php files, javascript, content…) when pages are loaded in the browser – so that’s probably why you are not seeing it in the editor.

    Thread Starter Stingraynut

    (@stingraynut)

    Thanks WPyogi – Ok there must be a glitch with the display of Home page in the editor. I’ve checked that page several times/days. I notice now that there is html visible in places, just not where these missing <p> tags are. I have removed content and squeezed up the shortcodes so there’s no invisible html present, re pasted the words after cleaning in notebook – still those </p> end tags appear- so perhaps Ryan is right and the theme is doing something weird. I will check the code.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘How to edit html in post’ is closed to new replies.