Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Are you writing it in the HTML editor tab?
I’m sorry but as you appear to be using a commercial theme, you need to seek support from the theme’s vendors.
Thread Starter
hrm7
(@hrm7)
@andrew Nevins
Member
yes writing it in the HTML editor tab
@ esmi
Theme Diva & Forum Moderator
i am using pageline theme (free version)
If you are using this theme: http://ww.wp.xz.cn/extend/themes/pagelines
Both of these lines of code work fine:
<button type="button">Click Me!</button>
<input type="text" name="fname" />
The button and the text box will both show in your post, but you must enter them in the html editor as Andrew suggests, not in the visual editor.
Thread Starter
hrm7
(@hrm7)
Thread Starter
hrm7
(@hrm7)
The button and the text box will both show in my post, i enter them in the html editor ….
code is work in Twenty Eleven theme
but not work in pagelines theme
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Have you sought help from your theme’s vendors?
Thread Starter
hrm7
(@hrm7)
The example you show in your Pagelines screenshot is for a post excerpt, not the post content.
but in Twenty Eleven theme this work
I believe the Twenty Eleven example is displaying the_content, not the_excerpt.
Click on “Read the full article” in your front page excerpt in Pagelines, and see if the button and input field display normally in the full post. I suspect it will.
Might this be happening because WordPress is just stripping the html tags for display in the excerpt?
Thread Starter
hrm7
(@hrm7)
Tnx click on “Read the full article”
button and input field display normally in the full post.
Thank you !