My HTML Markup in Sections is disappearing!

Home Forums Support My HTML Markup in Sections is disappearing!

Home Forums Support My HTML Markup in Sections is disappearing!

Viewing 15 posts - 16 through 30 (of 55 total)
  • Author
    Posts
  • #830974
    Lacey

    I realize this thread is 3-1/2 years old, but I’m experiencing the same thing with HTML code being deleted within the WordPress editor. I’ve used both the Visual editor and the Code editor, and both delete my tags – usually paragraphs, line breaks, spans, etc, even when they have content.

    Extremely frustrating. Last week I found code to place with the functions.PHP file, but that didn’t make any difference.

    This isn’t happening with other WordPress websites I’m editing in other themes, just this one. I’m thinking it’s a conflict between the generatepress theme and WordPress, but I’m certainly no expert.

    If an effective solution has been found, please advise.
    Thank you.

    #831009
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Do you have an example of the HTML being stripped?

    #831016
    Lacey

    https://hlnationsdev.wpengine.com/contact-us/

    Where the sentence begins Principal Office ::, the address and email should be below that, each on separate lines, but it’s all on one line despite them being on separate lines in the editor (both visual and code)

    Using header tags (as above, with BP) works and they are not deleted, but paragraph and span tags are immediately deleted when I click off the editor.

    I’ve tried disabling all the plug-ins and it’s still doing the deletions.

    #831033
    Tom
    Lead Developer
    Lead Developer

    Where are the row and col HTML elements come from?

    #831038
    Lacey

    The previous code I inherited from their other website.
    Do you think those are causing a conflict?

    #831043
    Tom
    Lead Developer
    Lead Developer

    They could be, it’s hard to tell really.

    Any chance you can try removing the HTML and then make sure everything that should be is on its own line?

    If that doesn’t work, it would be great if you could open a new topic so the other users in this one don’t receive a bunch of emails.

    Thanks! ๐Ÿ™‚

    #831065
    Paul

    Wish I had something to contribute here, but I can’t remember what I did exactly to make this issue go away. Lacey, have you tried disabling all other plugins to see if the problem goes away?

    #831073
    Lacey

    Hi Paul,

    Yep, and I’ve removed the extraneous styling code but it’s still doing the rogue deletions.

    I’m so sorry for the interruptions and will start a new topic tomorrow on this.

    #846412
    Anthony

    I can’t seem to get this to work either. Even when I disable the visual editor it’s still displaying.

    For whatever reason it’s stripping my links, my paragraph tags and other small things.

    Any solution to this yet?

    #846630
    Lacey

    Hi Anthony,

    I suspect that it may have something to do with using a child theme for GeneratePress. When I activated the main theme, it stopped but when I activated the child theme, it began stripping my code again.

    Even when I completely deleted everything in my child them AND deleted anything custom in my functions.PHP file (in the child theme directory), the WordPress editor continued deleting my HTML markup.

    Not sure how to fix this other than not using a child theme (for me, anyway.)

    Best of luck in figuring this out!

    #846685
    Anthony

    I don’t have a child theme.

    I got it slightly working. I downloaded what I’m thinking was the BETA version of the GP Premium theme. And it wasn’t working?

    When I purchased the premium it came with one called gp-premium-1.8.0-alpha.1.zip and then one that was just gp-premium-1.7.8.zip.

    The alpha was giving me way more issues.

    Now it works unless I go to visual editor and back into text editor.

    And for some reason it’s problematic when I disable the visual editor.

    Messyyy

    #846772
    Tom
    Lead Developer
    Lead Developer

    Can you show me an example of the issue you were having in 1.8? We’ll want to get that fixed before the update is officially released and this becomes an issue.

    Thanks!

    #846779
    Anthony

    I wish I could screen shot or video it but It would involve me FTPing it back onto my site. I just spent several hours getting it where it’s at haha

    But for example…

    Even still now. When I click over to visual, and then back to text, this is what changes.

    It goes from this (what I want it to be):

    <div class="row"> 
    <a href="https://www.cukebook.org/recipes">
    <div class="column">
    <p> <img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/02/recipe-book-icon-color.png" /><br> 
    Recipes</p>
    </div> 
     </a>
    
    <a href="https://www.cukebook.org/guides">
    <div class="column">
    <p><img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/02/guides-book-icon.png" /><br> 
    Guides</p> 
    </div>
    </a> 
    
    <a href="https://www.cukebook.org/shop">
    <div class="column">
    <p><img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/03/sorefront-icon-100.png" /><br> 
    Shop</p>
    </div> 
    </a> 
    
    <a href="https://www.cukebook.org/latest">
    <div class="column"><p>
    <img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/02/blog-icon.png" /><br> 
    Latest</p>
    </div> 
    </a>
    
    <a href="https://www.cukebook.org/newsletter">
    <div class="column">
    <p> <img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/02/newsletter-icon-color.png" /><br> 
    Newsletter</p>
    </div> 
    </a>
    
    </div>

    To this:

    <div class="row">
    <div class="column">
    
    <img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/02/recipe-book-icon-color.png" />
    Recipes
    
    </div>
    &nbsp;
    
    &nbsp;
    <div class="column">
    
    <img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/02/guides-book-icon.png" />
    Guides
    
    </div>
    &nbsp;
    
    &nbsp;
    <div class="column">
    
    <img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/03/sorefront-icon-100.png" />
    Shop
    
    </div>
    &nbsp;
    
    &nbsp;
    <div class="column">
    
    <img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/02/blog-icon.png" />
    Latest
    
    </div>
    &nbsp;
    
    &nbsp;
    <div class="column">
    
    <img src="https://cdn.shortpixel.ai/client/q_lossless,ret_img/https://www.cukebook.org/wp-content/uploads/2019/02/newsletter-icon-color.png" />
    Newsletter
    
    </div>
    &nbsp;
    
    </div>

    It seems to be stripping the links and the paragraph tags.

    Anthony

    #846780
    Anthony

    Well I wanted that to post as html haha

    #846782
    Leo
    Staff
    Customer Support

    Make sure you highlight the code and click “code” button in the editor.

    I’ve edited above ๐Ÿ™‚

Viewing 15 posts - 16 through 30 (of 55 total)
  • You must be logged in to reply to this topic.