• Hello!!

    First off, I would like to say this theme is great! The only issue I am having is sharing one of my social media site in the header and I was wondering if it is possible to link my Linkedin account? Just curious.

    Thanks,
    Michelle

Viewing 5 replies - 1 through 5 (of 5 total)
  • Glad you’re liking Singl! LinkedIn isn’t one of the social networks supported in Singl, and I don’t see any workarounds suitable for WordPress.com users, even with Custom CSS. (On a self-hosted site you would be able to make changes through a child theme.)

    If you have further questions, feel free to post in the WordPress.com forums, as these forums are for self-hosted WordPress users. Thanks!

    https://en.forums.wordpress.com/

    Tips on getting help in the WordPress.com forums:
    https://en.support.wordpress.com/getting-help-in-the-forums/

    guillermovargasquisoboni

    (@guillermovargasquisoboni)

    Hello Kathryn,

    I agree with Michelle, Singl is a very good theme, clean and beautiful. I’m a user of self-hosted wordpress and would like to make some adaptations to this theme. I’m already using a child theme of singl and, like Michelle, today, I just want to insert other social links, specifically LinkedIn and Academia.

    I’m actually decrypting the header.php template, but I don’t know if the functions of social links are developped in other files and folders.

    Do you know how this could be done ?

    Regards,

    G.

    Most code editors – like TextWrangler, or Sublime Text – have something called “multi-file search” built in. This is very handy for tracking down these sorts of things. ??

    I ran a multi-file search on the Singl folder for the word “twitter” and found that in addition to header.php, these files contain pieces of code relevant to the social links:

    inc/customizer.php
    inc/extras.php
    css/font-awesome.css

    Adding new options for other social-media services in the Customizer isn’t a simple tweak in a child theme, since the related functions aren’t “pluggable” – meaning they can’t be easily overridden in a child theme’s functions.php file.

    Instead, a simpler option might be to code your social media links directly in the child theme’s header.php, assuming they won’t need to change frequently.

    guillermovargasquisoboni

    (@guillermovargasquisoboni)

    Thank you very much for your answer.

    You’re right. I will maybe let the customizer for later, when I will have the time to increase my wordpress knowledge :)! )

    I made a first attempt to insert a piece of code into the header.php, but I made a syntax error somewhere…

    This is what I inserted.

    In line 21 :

    $linkedin_link = get_theme_mod ( 'singl_linkedin_link' );

    In line 33:

    || '' != $linkedin_link

    In line 156:

    <?php if ( '' != $linkedin_link ) : ?>
    <li class="linkedin-link">
    <a href="fr.linkedin.com/my_profile">LinkedIn</a>
    </li>

    What could be wrong here?

    Since you’re hard-coding in your LinkedIn profile link, you don’t need to also include it as a variable, right?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can I have a LinkedIn link in header?’ is closed to new replies.