Html not working on wordpress post

djsobuj

Elite Member
Jr. VIP
Joined
Jan 27, 2018
Messages
3,845
Reaction score
1,261
The html code works when I preview the post but when I published it, the post not working properly...
 
point us to the right URL or post first before we could tell you what the problem is.
 
Check your template for unclosed DIVs. You probably have some tag not closing on the template.
 
point us to the right URL or post first before we could tell you what the problem is.
Check your template for unclosed DIVs. You probably have some tag not closing on the template.
The code is to show random text and the text have some emoji but when I published the emoji not showing and it looks like Css is not working..
 
The code is to show random text and the text have some emoji but when I published the emoji not showing and it looks like Css is not working..
For these advanced cases, always use page templates. They are much easier to control, and modify. For more, check the doc:
Code:
https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-custom-page-templates-for-global-use



Another way of doing it would be to make a shortcode.
Code:
https://codex.wordpress.org/Shortcode_API
 
For these advanced cases, always use page templates. They are much easier to control, and modify. For more, check the doc:
Code:
https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-custom-page-templates-for-global-use



Another way of doing it would be to make a shortcode.
Code:
https://codex.wordpress.org/Shortcode_API
yes, I am using a page instead of a post, but still, the emoji not showing and it looks the CSS is not working in the middle of the post where the random text.
 
yes, I am using a page instead of a post, but still, the emoji not showing and it looks the CSS is not working in the middle of the post where the random text.
Can I see a demo of it not working?
 
emoji not working when I copy it with mobile and past it,


when I copy the emoji and paste it from my website, it show   not working,
Test with one emoji and put two backspaces before and after it to seperate it from any other text and see if it works
 
Test with one emoji and put two backspaces before and after it to seperate it from any other text and see if it works
it works when I paste it on Facebook but when I post it on youtube, not work anymore
 
The code is to show random text and the text have some emoji but when I published the emoji not showing and it looks like Css is not working..

Check that the emoji or random text don't have invalid html in them. Fairly common problem.
 
Now the emoji showing but when I paste it on YouTube it not working but work on Facebook.

You got some invalid html.

Get a good code editor. It'll show you unclosed tags.
 
Back
Top