Allow omission of http in social links

Home Forums Main Forum Theme Suggestion Box Allow omission of http in social links

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15504
    Terry Hale
    Member

    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.

    #20479
    Sushil Adhikari
    Moderator

    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?

    #20480
    Terry Hale
    Member

    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. 😉

    #15505
    Terry Hale
    Member

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.