Home › Forums › Main Forum › Theme Suggestion Box › Allow omission of http in social links
This applies to Celestial, since I have not yet installed any other themes.
When you put in a link such as:
google.com/+MizagornInk
into the social networking area of the customizer, the url generated for the social icons becomes something like:
mizagorn.com/google.com/+MizagornInk
In other words, it places your domain ahead of the link you specify if you do not include the HTTP or HTTPS protocol as part of the link.
I can’t see so far that that’s something Celestial’s header.php file does. Looks like it gets populated into $options[ ‘google_uid’ ] with the get_theme_mods() method called the header.
Thanks again for the suggestion….however, .some links may require an http or https, which is why you need to enter the social URL’s with the full URL, including the http, etc. Some don’t even use the www part, such as Twitter which is:
http://twitter.com/yourusername
Do my tutorials for this say something different?
Wow, I must’ve hit cancel on my reply lol… here goes again.
I did not watch the social network setup vid, because it seemed pretty self-explanatory.
Watching it, you do say to enter the http:// part, not just the username, so that makes sense.
What I did was just put in the URL that Google gave me. I also added the # tag to other ones, and it looks like if there is no http://, then the link is assumed to be within your own site since it adds your domain.
I don’t know if that’s just WP functionality or not, but I have all the links good now. Just thought I’d give you a heads up in case it ever came up with anyone. 😉
Oh, here’s something else. If you put in http:// on your link (required to keep it from being an internal link), it will not actually be part of the link generated onto the output.
If you put https:// it actually will add the protocol to the link in the final output.
I’m sort of thinking out loud here.
With our premium themes, we offer access to site documentation, video tutorials and timely support. Even if you have just started on WordPress, our support staff have the patience to help you create appealing sites gracefully.
Company
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.To find out more, including how to control cookies, see here: Privacy Policy
© Copyright © 2023 Styled Themes. All Right Reserved.