- This topic has 54 replies, 9 voices, and was last updated 4 years, 11 months ago by Tom.
-
AuthorPosts
-
March 6, 2019 at 1:26 pm #830974Lacey
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.March 6, 2019 at 2:30 pm #831009TomLead DeveloperLead DeveloperHi there,
Do you have an example of the HTML being stripped?
March 6, 2019 at 2:49 pm #831016Laceyhttps://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.
March 6, 2019 at 3:05 pm #831033TomLead DeveloperLead DeveloperWhere are the
row
andcol
HTML elements come from?March 6, 2019 at 3:11 pm #831038LaceyThe previous code I inherited from their other website.
Do you think those are causing a conflict?March 6, 2019 at 3:16 pm #831043TomLead DeveloperLead DeveloperThey 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! ๐
March 6, 2019 at 3:48 pm #831065PaulWish 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?
March 6, 2019 at 3:58 pm #831073LaceyHi 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.
March 22, 2019 at 5:14 am #846412AnthonyI 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?
March 22, 2019 at 7:16 am #846630LaceyHi 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!
March 22, 2019 at 8:25 am #846685AnthonyI 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
March 22, 2019 at 10:03 am #846772TomLead DeveloperLead DeveloperCan 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!
March 22, 2019 at 10:07 am #846779AnthonyI 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> <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> <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> <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> <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> </div>
It seems to be stripping the links and the paragraph tags.
Anthony
March 22, 2019 at 10:08 am #846780AnthonyWell I wanted that to post as html haha
March 22, 2019 at 10:11 am #846782LeoStaffCustomer SupportMake sure you highlight the code and click “code” button in the editor.
I’ve edited above ๐
-
AuthorPosts
- You must be logged in to reply to this topic.