• Resolved dccharron

    (@dccharron)


    I’ve used a snippet to customise the social links. Here’s the snippet link:

    https://themesandco.com/snippet/adding-custom-social-profile-link-icon-header/

    I had used this to create my own text links. I did not use any of the theme’s inbuilt social media links.

    When I upgraded to 3.2.2, my text links disappeared. I experimented by adding a link to facebook in the theme’s inbuilt link. That seems to have triggered something. Now I see both the link to facebook and my custom text links.

    My guess is that in 3.2.2 the filter (tc_social_in_header) in my functions.php file is not being called unless at least one of the theme’s inbuilt social media links is activated. Is that correct?

    Is there a way of overriding this? I want the filter to be called to display my text links without any of the inbuilt links being displayed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dccharron

    (@dccharron)

    I found a solution. I added my link in the theme’s customization menu for Facebook. The presence of at least one inbuilt social media link triggers the tc_social_in_header routine to be run and the little F icon appears. To get rid of it, I removed a line of code from my child theme’s functions.php file:

    <?php echo tc__f( '__get_socials' ) ?>

    Deleting it turned off the display of all inbuilt social icons in the header so the little F disappeared. That’s exactly what I wanted. But since the tc_social_in_header routine was called, it loaded and displayed my text links (it’s actually a miniature menu) as it had done before the upgrade. You can see it at work on https://haitidebeachresort.com in the top right corner of each page.

    Michel-G

    (@michel-g)

    Hello Dccharron,

    Thanks so much for this solution, i will try it later, after a night of dreams. You made a very nice site for this resort, it is cool.
    I hope one day to get enough for spending holidays there ??
    I wish you a nice day, i will try your solution soon,
    Cordially,
    Michel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding custom social link only works differently in 3.2.2’ is closed to new replies.