New Landing How can we help? Themeforest Theme Support Flexform Is there a way to add youtube channel to social media, not username?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Flexform
  • #222333
    graf007
    Member
    Post count: 147

    Is there a way to add youtube channel to social media, not username?

    Also, when I put by Username in to test it, it isn’t working. What am I doing wrong?

    #222334
    graf007
    Member
    Post count: 147
    This reply has been marked as private.
    #222351
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    That’s not the user name, the name is the one in the link of Youtube.
    Can you provide an example of a video loaded by your user?

    -Rui

    #222930
    graf007
    Member
    Post count: 147
    This reply has been marked as private.
    #222975
    David Martin – Support
    Moderator
    Post count: 20834

    Where are you trying to add that?

    You are trying to link to an actual video? You should be linking to the user with the full URL: https://www.youtube.com/channel/UCYmkFbe9SM0PnYjRt_OrljA

    Unless you are trying to embed a video?

    – David.

    #223031
    graf007
    Member
    Post count: 147
    This reply has been marked as private.
    #223279
    David Martin – Support
    Moderator
    Post count: 20834

    Please explain exactly what you are trying to do? This is very vague.
    -David.

    #223386
    graf007
    Member
    Post count: 147
    This reply has been marked as private.
    #223388
    David Martin – Support
    Moderator
    Post count: 20834

    You will need to edit the shortcode to adjust the output.

    The file is located /flexform/includes/shortcodes.php the function you need to change is called: social_icons

    Locate this line:

    $social_icons .= '<li class="youtube"><a href="http://www.youtube.com/user/'.$youtube.'" target="_blank">YouTube</a></li>'."\n";

    And replace with this:

    $social_icons .= '<li class="youtube"><a href="'.$youtube.'" target="_blank">YouTube</a></li>'."\n";

    This will allow you to use a full URL of your desire, such as http://www.youtube.com/channel/UCYmkFbe9SM0PnYjRt_OrljA

    – David.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register