Wordpress Text Widget Links - wordpress

I am adding text links to a wordpress text widget that goes in the sidebar of my site.
I am adding the example link here wrapped in a "a href":
Instagram
but when the link is clicked, it opens a url that contains my site's url in front of the linked url. For example:
http://mysiteurl.com/www.instagram.com/
I can't figure out why this is happening as this is usually the most simple adjustment for a site.
Thank you,

Are you sure "http://" is in your href ?
It happends when your href="www.instagram.com"
Good : href="http://www.instagram.com"

You are linking to "instagram.com" rather than http://instagram.com.
Your browser needs a protocol (http://) in order to know what to do with the link. If there is no protocol it assumes the link is local to the site you're on, so navigates you there.
If you include the protocol, your browser will know it is a separate entity and navigate to the correct place.
The full link should look like:
Instagram

What was causing the issue was that “ quotes were used instead of ". So the correct link is
Instagram
instead of
Instagram

Related

Wordpress permalink direct to image jpg?

I have a couple of images which I want to link to externally. (Essentially they will be used in email headers and things of that sort that are sent to users).
I uploaded them in the wordpress media library and edited their slugs, so I have nice permalinks like:
www.example.com/image1
However when I enter that URL in the browser I just get the "This page doesn't seem to exist." page.
Permalinks for normal posts work fine.
The links to the actual image works fine too, but it is ugly (and shows unnecessary details like the fact that it is backed by wordpress and the date etc.), something like:
www.example.com/wp-content/uploads/2021/08/v2_2.jpg
Is there a way to permalink directly to the images?
Can you actually see the slug on the image's media page? In my case it says "Permalink: https://www.apothekarium.de/giftschein_arsen_1877/" when I go to the media library, then click on the image, then click "edit image" and then click "edit more details".
However, even if you get this right, I think the result may not be what you are after. Look at my link: https://www.apothekarium.de/giftschein_arsen_1877/
While it does work, it does not show the image itself, but a page that contains the image. So this would be completely unsuitable for linking to it from an external site and I suppose that is what you are after.
So my answer to your question, as I understood it, is: no, that does not seem to be possible in Wordpress proper.
You could of course solve the problem externally, e. g. in your webserver config.

WordPress embed link doesn't react when clicked

enter image description here
Here is the website with the problem as the title.
http://gophilippines.media/itcamp02/
When I try to click the WordPress embed link card, it doesn't do anything.
Does anyone know what's wrong and perhaps some idea to fix?
I also disabled all the plugins yet the link doesn't react...
The element of the link contains an attribute target="_top". This attribute will try to open the linked document in the full body of the window (See this for more info).
You can remove the attribute or change it to another that does the work for you.

Embedding links in WordPress 3.6

I am developing a theme for WordPress 3.6 and as far as I know embedded links, like if just place a link into the post for YouTube it should auto embed its self. that's not the case here - would any one know what would cause links from services like YouTube to not embed?
[embed][/embed] doesn't work either...
Make sure the YouTube link is not hyperlinked. If the URL is shown in
your theme’s link color (as the second line in the screenshot below),
then it is hyperlinked. Simply select the whole URL and click the
“Unlink” icon on your Visual Editor toolbar.
Once the URL is unlinked, you will see the link text in black. Make
sure to place the YouTube URL or shortcode on its own line. This
means there should be no character or whitespace before or after the
URL/shortcode.
http://en.support.wordpress.com/shortcodes/
However, beyond those issues you might want to look into. the API that WP uses to embed links from YouTube, Twitter, Flicker...
http://oembed.com/
oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.
Unlink the link if it's linked and use the shortcode :
[youtube=http://www.youtube.com/XXXX] and that will work.

Changing open graph image tag based on blog post item

I am maintaining a wordpress blog and am familiar with using the og:image meta tag to set the default image that is included when a like button is pressed. What I want to know is if there is a way to make this image dynamic based on the item liked.
I am trying to build it so that the first image in a particular blog post that is liked is what is pushed to the facebook feed post, with the blog's default image only used if there is no image in the post. Does facebook provide any way to do this with the graph api?
I tried writing javascript to change the meta tag on article pages (rather than the homepage) but found out later the crawler does not run javascript, so am now considering implementing the same but server side with PHP. This still would not solve the problem of Likes from the blog homepage, where there are multiple blog items on the page though. Any advice would be greatly appreciated.
Thanks
The only is changing how the meta tags get rendered to the client, in server code or in your layout template. There is no graph api method for this and you can't modify the tags with javascript as their scraper doesn't execute javascript.
Also, the scraper won't keep re-visiting your site so once it access it, it will be cached until you go to the url linter tool manually. so for the home page, you would probably just want the default image.

Prevent to automatically render youtube links in Wordpress Comments

Wordpress is now replacing the youtube links that people post into comments of a post with the actual video. It is rather anoying and I would like to know if it is possible to leave the link as is and not add the embed code to view the video directly from the comment container?
Have you tried entering that code in the TEXT tab rather than the VISUAL tab of the editor?

Resources