{"id":72416,"date":"2016-06-24T09:28:24","date_gmt":"2016-06-24T13:28:24","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=72416"},"modified":"2016-07-18T04:55:07","modified_gmt":"2016-07-18T08:55:07","slug":"cherryframework-4-how-to-make-team-posts-social-icons-open-in-new-tab","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cherryframework-4-how-to-make-team-posts-social-icons-open-in-new-tab.html","title":{"rendered":"CherryFramework 4. How to make team posts social icons open in new tab"},"content":{"rendered":"<p>In this tutorial you will learn the way to make team posts social icons open in a new tab in Cherry Framework 4 based templates.<\/p>\r\n\r\n <div class=\"video-container\">\r\n\t<iframe src=\"https:\/\/www.youtube.com\/embed\/usuDltWn9Rk\"><\/iframe>\r\n<\/div>\r\n<p>Social icons on the single team member pages open in the same tab by default (see an example of the team post social icons on the screenshot below):<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab1-300x169.jpg\" alt=\"cherry4_how_to_make_team_posts_social_icons_open_in_new_tab1\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-72418\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab1-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<p>To make the team posts social icons open in a new browser tab, you should perform the following steps:<\/p>\r\n<ol>\r\n<li><p>Using FTP or File Manager in the Hosting Control Panel, navigate to <strong>wp-content\/themes\/themeXXXXX<\/strong> directory (where XXXXX is the number of your theme).<\/p>\r\n<\/li>\r\n<li><p>In this directory find and open the <strong>functions.php<\/strong> file with any text editor and add the following code to the very bottom of this file:<\/p>\r\n<pre class=\"brush:php\">add_filter( 'cherry_team_socials_item_format', 'new_cherry_team_socials_item_format' );\r\n\r\nfunction new_cherry_team_socials_item_format(){\r\n    return '&lt;div class=\"team-socials_item\"&gt;&lt;a href=\"%s\" class=\"team-socials_link\" rel=\"nofollow\" target=\"_blank\"&gt;&lt;i class=\"team-socials_icon %s\"&gt;&lt;\/i&gt;&lt;span class=\"team-socials_label\"&gt;%s&lt;\/span&gt;&lt;\/a&gt;&lt;\/div&gt;';\r\n}<\/pre>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab2-300x169.jpg\" alt=\"cherry4_how_to_make_team_posts_social_icons_open_in_new_tab2\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-72419\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab2-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/06\/cherry4_how_to_make_team_posts_social_icons_open_in_new_tab2.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>  \r\n<\/li>\r\n  <li><p>Save the changes in the file and refresh your team post to check the changes on your site. You will see the team social icons open in new tabs now.<\/p><\/li>\r\n<\/ol>\r\n<p>This is the end of the tutorial. Now you know how to make team posts social icons open in a new tab in Cherry Framework 4 based templates.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=usuDltWn9Rk?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 4. How to make team posts social icons open in new tab<\/a>","protected":false},"excerpt":{"rendered":"<p>In this tutorial you will learn the way to make team posts social icons open in a new tab in Cherry Framework 4 based templates.<\/p>\n","protected":false},"author":53,"featured_media":72420,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2017,728],"tags":[2012,2327,2326,1780],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/72416"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/53"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=72416"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/72416\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/72420"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=72416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=72416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=72416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}