Html issue
-
I am having a problem with the custom html block.
I enter the text like I normally do with my other html codes that worked perfectly.
But this specific page I enter the code and when I look at preview the text link and the image I have are far below each other where the image should be directly under the html block. It can’t be the code because the block represents the code and the text comes out right. It is the space between the html block and the image that is way off.
How do I fix this please? This is annoying me because this never happened before.
I tried closing the tab and opening a new one but still gives me problems. Or am I supposed to delete the page and redo a whole new page?Site: https://softwaregallore.wordpress.com.
WP.com: Yes
Correct account: Yes -
First: you can’t put any code you want in a custom html block, https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/.
You don’t need a custom html block to put an image under a text. It’s much easier an safer to combine a Paragraph Block with an Image Block and put both block in a Group Block. -
I have an affiliate link that’s in code that I need to put in.
Even if I just put the code in html block then when I look in preview the description is far below the actual words.
The words should be
PhotoshopDescription.
It comes out like….
Photoshop
Description
Why is there now so much space between the word Photoshop and the description?
The link Photoshop is attached to a code in a custom html block.
I don’t have a normal URL link just to add it into text. This one is a html code that represents the link.
So how do I remove the space between the two? It doesn’t look professional at all when a visitor looks at the article and see this huge space between the link and the description or the link and the image. -
It should look like
.
Photoshop
.
Description/image
.
It looks like
.
Photoshop
.
.
.
.
Description. -
Hi there,
It’s possible the code you’re using is not supported on your free plan. Please review this page that explains the types of code that is or isn’t allowed: https://wordpress.com/support/code/
Are you inserting affiliate links from Amazon? If so, you can check out how to place text or image links here: https://wordpress.com/support/adding-amazon-com-affiliate-links-to-your-wordpress-com-site/
If you’re not sure if the code you’re using is supported, please use a tool like https://snipboard.io and share a screenshot showing us the code (the code you pasted above got stripped likely because it’s unsupported). Remember to not include any personal information in your screenshot. We can look at the screenshot of the code and confirm if that code is not supported on the free plan.
-
I never sent the code.
I am showing you what it should look like and what it does look like.
I am using affiliate link from adobe but the link that gives me issues is the text link.
If it’s a banner link then it has a few options for a link like the one that works fine is html link. But then there is JavaScript and custom ECT. On the text links the only option is JavaScript and custom. JavaScript does not show the text on the website it shows the code. And on custom I have to uncheck the cookies box and use the code but then on the website preview it shows the name and under that is a space of around 6 blocks then it shows the start of the description.
I think the only code that will work is the html link not the custom and not the JavaScript option. Problem is the text links don’t have the html link option.
So I am forced to use the one banner link for all the items I have in the article.
But doesn’t look professional having one image for all the products
I mean photoshop then InDesign then illustrator should have different images but because I can’t use the text link I have to use creative cloud banner on all of them. Oh well. -
The HTML code you can use on the free plan is very limited; javascript is one of the things you can’t use. You can only use a direct html-link. Unless you upgrade to the Business Plan.
-
Type your text here
<script type=”text/javascript”>
var uri = ‘https://imp.tradedoubler.com/imp?type(inv)g(22793632)a(3229789)’ + new String (Math.random()).substring (2, 11);
document.write(‘‘);
</script>By type your text here I should put Adobe InDesign.
It should come out as Adobe InDesign as a link but it comes out as Adobe InDesign but with a space under it the size of 6 empty blocks then only the description starts.
Guess that’s what happens with a free account.
Thanks for the advice anyway.
- The topic ‘Html issue’ is closed to new replies.