Is editing the php files and such only available for paid themes?
-
Trying to add some allowed HTML tags for comments on my blog, and wondering if that can no longer be done on the Titan theme since it says it’s no longer accepted. I’ve created a test blog to try out Independent Producer 2, and from what I see so far, the dashboard looks the same. When I go into ‘plugins’ (which one Q&A place said is where you go to change the php), it just offers different plugins, but says I must upgrade to a ‘business plan’ to change those.
The blog I need help with is: (visible only to logged in users)
-
Hi erictb,
Are you trying to insert HTML tags into the comment field on erictb.wordpress.com? If so, which tags are you having trouble with?
it just offers different plugins, but says I must upgrade to a ‘business plan’ to change those
That’s correct — Custom plugins can only be installed on sites using the Business plan, which is why you don’t see the option on erictb.wordpress.com.
-
It seems like anything but the standard italic, bold, etc. The ones that I use frequently are ‹U›, ‹SMALL› and even ‹FONT›. I can initially post them, but if I edit then with the new editor, it erases the whole tags. I read that this has something to do with preventing “XSS vulnerability”, which is about people running malicious scripts on the page or something, but I have no idea how that would happen.
-
The ones that I use frequently are ‹U›, ‹SMALL› and even ‹FONT›.
None of those are valid HTML5 tags, and you won’t be able to use them in comments or inside posts. All three those actions are no longer controlled via HTML, but instead via CSS. If you want to add underlining, change the font size or specify a different font to use in a post or page you need to use the style attribute in a p, div or span tag to style those aspects of the text.
https://www.w3schools.com/tags/att_style.asp
However, also note that changing the font in this way will only work if your theme already supports the specific font, or if the font is installed on the computer of the person viewing your site. It is not possible to import new fonts into a WordPress.com site.
You can see the HTML tags that are allowed on WordPress.com here:
https://en.support.wordpress.com/code/posting-source-code/
PHP files on WordPress.com sites cannot be edited at all, and no upgrade gives you that ability.
-
I just tested out ‹span style=”text-decoration: underline;”›‹/span› (which I had copied from the “visual” editor of the post feature) and it does the same exact thing!
In fact, when you click “save”, you’ll see the underline (or other formatting) in a completely collapsed block of the text, but then when it straightens itself out, it’s gone, and the tags are completely erased. -
Hi there, the allowed tags for comments is defined in the WordPress core software, and span is not one of the allowed tags. In my testing, even trying to add an inline style to an italic tag doesn’t work. I can’t see anyway around this for you.
- The topic ‘Is editing the php files and such only available for paid themes?’ is closed to new replies.