Code
-
How do you implement code into the website such as javascript/html/css etc… because when I click to edit text I see there is an HTML button, but when I write the code for a button: <button>example</button> nothing works, it’s text only? Why?
The blog I need help with is: (visible only to logged in users)
-
-
Hi there,
In the HTML tab in the post/page editor you can add most HTML along with inline CSS to add styling to that HTML. If the button tag does not display a button, it’s likely that your theme does not have styling added for that tag, which means you’ll need to use inline CSS via the style-attribute to add that styling. For a button tag to do something, it also needs to be attached to a JavaScript event, or it must be inside the a-tag for a link.
You can also use HTML with inline CSS in a text widget, and some themes have additional text fields in the theme settings where you can use that code, but it’s not possible to otherwise add HTML to your site. Custom CSS can be added to your theme if you have the Business or Premium plan. The HTML and CSS files cannot be edited directly.
Also note that we don’t allow certain HTML tags, most notably the iframe and form tags. JavaScript cannot be used on WordPress.com at all.
You can see these pages for some more information:
- The topic ‘Code’ is closed to new replies.