Search Results for 'facebook share text'

    No search results were found in Documentation!

Results from the Forum
kermit
Participant
#0

(This is a picture of my old theme)
FB

On my old theme i did just put this code in single.php, but on Newspaper that doesn’t seem to work(?)


<br>
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2&width&layout=standard&action=like&show_faces=false&share=false&height=35&appId=796648480393803" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:35px;" allowTransparency="true"></iframe>

<br>
<div style="text-align: center; border:0px !important;">
<script type="text/javascript">// <![CDATA[
function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}
// ]]></script>" target="_blank">
</div>

I want the like and share button at the end of the article, but i need to know where i can place the code.

Does anyone know?

gazgaz
Participant
#0

installed shop.
when ordering appears incomprehensible code.
Moreover, it appears only in IE.
In Google Chrome’s OK

ie:
http://s017.radikal.ru/i412/1411/d6/7edff2d60762.jpg

google chrome:
http://s57.radikal.ru/i155/1411/c8/cb9203cbeb45.jpg

this is my func file child-theme

<?php

/*  ----------------------------------------------------------------------------
    WordPress booster framework - this is our theme framework - all the content and settings are there
    It is not necessary to include it in the child theme only if you want to use the API
*/
if (!defined('TD_THEME_WP_BOOSTER')) {
	include TEMPLATEPATH . '/includes/td_wordpres_booster.php';
}

//Удаление цветовой схемы
remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );

//Редактирование полей в профиле
function modify_contact_methods($profile_fields) {
    // Add new fields
     //$profile_fields['twitter'] = 'Twitter Username';
     //$profile_fields['facebook'] = 'Facebook URL';
     //$profile_fields['gplus'] = 'Google+ URL';
       $profile_fields['dopplr'] = 'VK';
       $profile_fields['delicious'] = 'Battlelog';
	

    // Remove old fields
	unset($profile_fields['google']);
	unset($profile_fields['evernote']);
	unset($profile_fields['dribbble']);
	unset($profile_fields['digg']);
	unset($profile_fields['blogger']);
	unset($profile_fields['deviantart']);
	unset($profile_fields['forrst']);
	unset($profile_fields['github']);
	unset($profile_fields['googledrive']);
	unset($profile_fields['googlemaps']);
	unset($profile_fields['grooveshark']);
	unset($profile_fields['html5']);
	unset($profile_fields['lastfm']);
	unset($profile_fields['linkedin']);
	unset($profile_fields['myspace']);
	unset($profile_fields['path']);
	unset($profile_fields['picasa']);
	unset($profile_fields['pinterest']);
	unset($profile_fields['posterous']);
	unset($profile_fields['reddit']);
	unset($profile_fields['sharethis']);
	unset($profile_fields['slashdot']);
	unset($profile_fields['spotify']);
	unset($profile_fields['stackoverflow']);
	unset($profile_fields['stumbleUpon']);
	unset($profile_fields['tehnorati']);
	unset($profile_fields['sharethis']);
	unset($profile_fields['addthis']);
	unset($profile_fields['behance']);
	unset($profile_fields['tumblr']);
	unset($profile_fields['viddler']);
	unset($profile_fields['virb']);
	unset($profile_fields['windows']);
	unset($profile_fields['woordpress']);
	unset($profile_fields['zerply']);
	unset($profile_fields['paypal']);
	unset($profile_fields['yahoo']);
	unset($profile_fields['vimeo']);
	unset($profile_fields['rss']);
	unset($profile_fields['soundcloud']);

    return $profile_fields;
}
add_filter('user_contactmethods', 'modify_contact_methods');

//Удаление админбара для всех кроме админа
add_action('after_setup_theme', 'remove_admin_bar');

function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
  show_admin_bar(false);
}
}

//логотип при входе
function my_login_logo(){

echo '

<style type="text/css">

#login h1 a { background: url('. get_bloginfo('template_directory') .'/images/logo.png) no-repeat 0 0 !important; }

</style>';

}
add_action('login_head', 'my_login_logo');

//Теперь нам необходимо сделать так, чтобы логотип ссылался не на сайт wordpress.org, а на наш с вами. 
//Тут тоже особо трудного ничего нет, добавляем всего лишь еще одну строку
add_filter( 'login_headerurl', create_function('', 'return get_home_url();') );

//Всплывающую подсказку что сайт работает на WordPress надо тоже убрать, и добавить свою фразу. 
//Тут нам поможет эта строка:
add_filter( 'login_headertitle', create_function('', 'return "Brothers in Games - Сообщество любителей поиграть вместе";') );

//убрали лого из админбара
add_action( 'wp_before_admin_bar_render', function() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
}, 7 );

//убрали ненужные виджеты 
function shailan_remove_dashboard_widgets() {
    // Remove Quick Press Widget
    remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
    // Remove Incoming Links Widget
    remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
    // Remove Recent Comments Widget
    remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
    // Remove Latest Plugins Widget
    remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );
    // Remove WordPress Blog Widget
    remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );
    // Remove Other WordPress News Widget
    remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );
}  
add_action('wp_dashboard_setup', 'shailan_remove_dashboard_widgets' );

//удалили версию из футера админки
function my_footer_shh() {
    remove_filter( 'update_footer', 'core_update_footer' ); 
}
add_action( 'admin_menu', 'my_footer_shh' );

//удалили указание на вп в футере 
function remove_footer_admin () {
echo '';}
add_filter('admin_footer_text', 'remove_footer_admin'); 

//удалили таб помощи сверху
add_action('admin_head', 'mytheme_remove_help_tabs');
function mytheme_remove_help_tabs() {
    $screen = get_current_screen();
    $screen->remove_help_tabs();
}

//убрали метатег из хедера показывающий использование вп
function fjarrett_remove_wp_version_strings( $src ) {
     global $wp_version;
     parse_str(parse_url($src, PHP_URL_QUERY), $query);
     if ( !empty($query['ver']) && $query['ver'] === $wp_version ) {
          $src = remove_query_arg('ver', $src);
     }
     return $src;
}
add_filter( 'script_loader_src', 'fjarrett_remove_wp_version_strings' );
add_filter( 'style_loader_src', 'fjarrett_remove_wp_version_strings' );

//Hide WP version strings from generator meta tag
function wpmudev_remove_version() {
return '';
}
add_filter('the_generator', 'wpmudev_remove_version');

//скрытие пунктов меню слева от посторонних глаз
add_action( 'admin_init', 'my_remove_menu_pages', 999 );

function my_remove_menu_pages() {
    // If the user does not have access to publish posts
    if(!current_user_can('administrator')) {
        remove_menu_page('bsf-dashboard');
	remove_menu_page('wpcf7');
        remove_menu_page('edit.php?post_type=explandict');
        remove_menu_page('tools.php');
    }
}

// get the "author" role object
$role = get_role( 'author' );

// add "organize_gallery" to this role object
$role->add_cap( 'unfiltered_html' );

// убираем инфу о неправильном пароле при входе
add_filter('login_errors',create_function('$a', "return null;"));

// убираем из кода страницы упоминание о Yoast WordPress SEO plugin
add_action('get_header', 'rmyoast_ob_start');
add_action('wp_head', 'rmyoast_ob_end_flush', 100);
 
function rmyoast_ob_start() {
    ob_start('remove_yoast');
}
function rmyoast_ob_end_flush() {
    ob_end_flush();
}
function remove_yoast($output) {
    if (defined('WPSEO_VERSION')) {
        $output = str_ireplace('<!-- This site is optimized with the Yoast WordPress SEO plugin v' . WPSEO_VERSION . ' - https://yoast.com/wordpress/plugins/seo/ -->', '', $output);
        $output = str_ireplace('<!-- / Yoast WordPress SEO plugin. -->', '', $output);
    }
    return $output;
}
TheMediumUTM
tagDiv Member

Turns out it was a drop cap .td-post-text-content p:first-child:first-letter which I should have made .td-post-text-content > p:first-child:first-letter. (It was trying to do the first <p> in each div, I guess? Played around with it, some confusion. The divs are on different levels, for crying out loud…)

The icons are not working right now – just getting what look like glyphs. Guess the font family somehow isn’t being found, will check it out…

Oh, and the Facebook “Like” text should probably be “Share” since that’s what it does :p

Lucian
tagDiv Staff

Hi,

It should not matter what type of ad it’s displaying the class I used to target the content it’s applying to all ads.
I can not help you if I can’t inspect this issue, you could try to modify the ad code if it’s not working well.
Sorry for this!

Regarding the code keep in mind that you have to follow the steps from the solution Radu provided and move this code, like this http://screencast.com/t/DUVdHRbGh in the loop-single.php file, if you use other post template than the default one you have to do this in the post template file that you use http://screencast.com/t/pRKMIv38
Then go to td_module_blog.php file and add this line:

$buffy .= '<li class="td-text-share">Twitter Facebook Share Buttons</li>';

…like here http://screencast.com/t/dKB2ilqiZD
After you did this step you have to use the css code in the custom css section from theme panel.

Result: http://screencast.com/t/jEqQvh7duCV6

Thanks

  • This reply was modified 12 years by Lucian.
paulberrow
Participant
#0

Hi, i need to change your social buttons on my ones, coz i need much more different buttons for different social networks. How and where can i do it? I’ve got my own code, it’s bellow in this message.
Adn also i want to place these buttons on the top of every my post, could you help me with this too?

I have a code like this for buttons:
<script type=”text/javascript”>(function() {
if (window.pluso)if (typeof window.pluso.start == “function”) return;
if (window.ifpluso==undefined) { window.ifpluso = 1;
var d = document, s = d.createElement(‘script’), g = ‘getElementsByTagName’;
s.type = ‘text/javascript’; s.charset=’UTF-8′; s.async = true;
s.src = (‘https:’ == window.location.protocol ? ‘https’ : ‘http’) + ‘://share.pluso.ru/pluso-like.js’;
var h=d[g](‘body’)[0];
h.appendChild(s);
}})();</script>
<div class=”pluso” data-background=”#ebebeb” data-options=”big,square,line,horizontal,nocounter,theme=08″ data-services=”facebook,twitter,vkontakte,surfingbird,odnoklassniki,google,moimir,pinterest,tumblr,yandex”></div>

simchris
tagDiv Member

I’ve run across one issue with social media sharing on some posts with 3.9.2 (not yet updated to 4x), which contain a single quote in headline such as book title and which also have YouTube video. When sharing via Twitter and FB sometimes get some funky characters, like the encoding is broken. So, on Twitter we see a [] in place of ‘ …

Might not be the same issue, but check if it’s on posts with non text characters in headline/title, and YouTube video(s) auto-embedded in post.

This is the only “random” thing I’ve found with sharing with the standard sharing buttons (the big square CSS3 color buttons with social icons on them). For the moment we switched back to the share buttons with sharing numbers to fix it.

Waiting on 4.3/4.4 to upgrade theme from 3.9.2, but will check this issue once done.

dhvanesh
Participant
#0

Hi, I’ve got a problem when I share post-links on my Facebook fan page.

Everything was working good but all of a sudden, when I paste links from my blogposts in Facebook, the automatically generated title/summary text is all gibberish.

The problem does not happen when I try to paste links from older posts. It only happens for new posts.

What could be causing this issue?

Note: no new plugins activated. code unchanged. no new changes introduced in the settings.

Here you can see: http://www.screencast.com/t/gJ7Aae6TSx

simchris
tagDiv Member

Easy to find in the changelog once you download it …

[ V 3.8.2 ]
– fixed missing image from facebook shares on video post formats
– usability improvements in the fonts selection panel
– fixed pagebuilder icons style
– posts with pagination register only one view per page (more accurate page view counter)
– we updated the revolution slider plugin to the latest version
– speed booster plugin – revolution slider is now compatible
– speed booster plugin – improved compatibility with jetpack
– fixed text and title widget issue when visual composer plugin is not installed
– fixed bbPress freshness date/username
– tagDiv social counter – fixed twitter issue again (please update the plugin)

danielpetre
Participant
#0

Hello, does the live search work for anyone since 3.8.33.8.2 update ?
I disabled W3 Total Cache and still does not work..

What’s more annoying is that there are inconsistencies in developers’ changelog, i see one version in my theme panel and other version in the changelog file from the freshly downloaded zip.. 🙁

[ V 3.8.2 ]
- fixed missing image from facebook shares on video post formats
- usability improvements in the fonts selection panel
- fixed pagebuilder icons style
- posts with pagination register only one view per page (more accurate page view counter)
- we updated the revolution slider plugin to the latest version
- speed booster plugin - revolution slider is now compatible
- speed booster plugin - improved compatibility with jetpack
- fixed text and title widget issue when visual composer plugin is not installed
- fixed bbPress freshness date/username
- tagDiv social counter - fixed twitter issue again (please update the plugin)

Are these infos accurate? did i installed version 3.8.2 today or 3.8.33.8.2 ?

Marius
tagDiv Staff

Hi,

1. http://screencast.com/t/i0LNtNNSRe
2. Replace this code: http://screencast.com/t/cKKENuf8p7OG with this:

$image = wp_get_attachment_image_src( get_post_thumbnail_id( $this->post->ID ), 'single-post-thumbnail' );
            $buffy .= '
                <div class="td-tags-and-social-wrapper-box td-tags-and-social-wrapper-box-bottom-line">
                    <a class="td-social-sharing-buttons td-social-twitter" href="https://twitter.com/intent/tweet?text=' . $this->title . '&url=' . urlencode(get_permalink()) . '&via=' . get_bloginfo('name') .'" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;" ><div class="td-sp td-sp-share-twitter"></div><div class="td-social-but-text">Twitter</div></a>
                    <a class="td-social-sharing-buttons td-social-facebook" href="http://www.facebook.com/sharer.php?u=' . urlencode(get_permalink()) . '" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><div class="td-sp td-sp-share-facebook"></div><div class="td-social-but-text">Facebook</div></a>
                    <a class="td-social-sharing-buttons td-social-google" href="http://plus.google.com/share?url=' . get_permalink() . '" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><div class="td-sp td-sp-share-google"></div><div class="td-social-but-text">Google +</div></a>
                    <a class="td-social-sharing-buttons td-social-pinterest" href="http://pinterest.com/pin/create/button/?url=' . get_permalink() . '&media=' . (!empty($image[0]) ? $image[0] : '') . '" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><div class="td-sp td-sp-share-pinterest"></div><div class="td-social-but-text">Pinterest</div></a>';
            $buffy .= '<div class="td-social-like-tweet">';
            $buffy .= '<ul>';
            $buffy .= '<li class="td-like-tweet-twitter">';
            $buffy .= '<a href="https://twitter.com/share" class="twitter-share-button" data-url="' . $this->href . '" data-text="' . $this->title . '" data-via="' . td_util::get_option('tds_' . 'social_twitter') . '" data-lang="en">tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>';
            $buffy .= '</li>';

            $buffy .= '<li class="td-like-tweet-facebook">';
            $buffy .= '<iframe src="http://www.facebook.com/plugins/like.php?href=' . $this->href . '&layout=button_count&show_faces=false&width=105&action=like&colorscheme=light&height=21" style="border:none; overflow:hidden; width:105px; height:21px; background-color:transparent;"></iframe>';
            $buffy .= '</li>';

            $buffy .= '<li  class="td-like-tweet-google">';
            $buffy .= '
                    <div class="g-plusone" data-size="medium" data-href="' . $this->href . '"></div>
                    <script type="text/javascript">
                        (function() {
                            var po = document.createElement("script"); po.type = "text/javascript"; po.async = true;
                            po.src = "https://apis.google.com/js/plusone.js";
                            var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s);
                        })();
                    </script>
                    ';
            $buffy .= '</li>';
            $buffy .= '</ul>';
            $buffy .= '</div></div>';

3. Add this CSS in Theme panel -> Custom CSS

.td-social-like-tweet {
    margin-bottom: 0px;
}
.td-social-like-tweet ul {
    margin: 0px;
}

Thanks!

cunamis
Participant
#0

Hello,

First of all I’d like to say a big thank you for such a great WordPress Theme. I was looking for a very long time for news/magazine style WP theme fully compapitable with buddypress. So that’s how I came accross to choose this theme.

For sure there are also some issues, which I’m facing as well, so I hope you’ll be able to help me to solve it.

So let’s get started.

1. Ability to move Author Box to the top of the page.

Well, in my opininion for users it is much more important to see post authors at the top of the article nor at the bottom, when there is a multi-author website. So don’t you think that it would be very cool if we would be able to move author box to the top of the page?

Also some more issues:
– Now it shows author’s username in author box. Would it be possible somehow to change it automatically to author’s First and Last Name?
– Also is it possible to do drop-down author box similar to starbox does have?
author bio drop down

2. Add LinkedIn share button together with other social sharing buttons

Now all articles can have Facebook, Twitter, Google+ and Pinterest share buttons. But I think LinkedIn is also worth of being together with these buttons as it usually sends quite a lot of social visitors.

Also maybe it would be worth to consider to add social counters similar to Mashable does have?

3. Source URL and VIA url options doesn’t work properly

This theme does have a very cool option which let’s to mention who wrote the article and put a nice looking source.

But the problem is if let’s say you’ll put http://www.google.com/analytics in “Source URL” and http://www.google.com in “VIA URL”, then the system generates broken links and it redirects to 404 error pages.

In this case “Source URL” redirects to http://www.mywebsite.com/my-post-url/www.google.com/analytics and “Via URL” redirects to http://www.mywebsite.com/my-post-url?www.google.com, when it should redirect to http://www.google.com/analytics and http://www.google.com.

4. Ability to change text colors in main slides

Now if you change the color of the whole site, then the color in big slide will change as well.

Slide image color

The main problem is if I change website color, then sometimes the collor of title and collow of the box, which wraps the title, doesn’t look very attractive. So, it would be great if we could change class=”td-sbig-title-wrap” and class=”td-sbig-title” (the same is valid for small slides as well) via admin panel.

In this case I can change slide colors myself via css. But I think for many user it would be very useful if the would have a chance to change those colors themselves via admin panel.

5. Consider about “register” option in Login form at the top menu

There is a very cool option that we’re able to insert login form at the top menu, but I think it would be fair enough, that if users can login, first of all they should get an option to register on the site? 🙂

I think in that form should be additional “Register” form or at least something similar to “Not registered yet?”.

I want to thank you in advance in taking your time to read my problems and recommendations.

I do really believe that all those options would be very useful for other users as well, so maybe it is worth to consider to implement them in the next theme updates.

If not, I would really apreciate your recommendations on how I would be able to fix all those problems myself.

Thanks a lot and waiting for your honest answer 🙂

Marius
tagDiv Staff

Hi,
1. Add this code:

    function get_social() {
        $social_sharing = 1;

        $buffy .= '
            <div class="td-social-sharing">
                ' . $wrapper_post_tags;

        if($social_sharing == 1) {

            $image = wp_get_attachment_image_src( get_post_thumbnail_id( $this->post->ID ), 'single-post-thumbnail' );
            $buffy .= '
                <div class="td-tags-and-social-wrapper-box td-tags-and-social-wrapper-box-bottom-line">
                    <a class="td-social-sharing-buttons td-social-twitter" href="https://twitter.com/intent/tweet?text=' . $this->title . '&url=' . urlencode(get_permalink()) . '&via=' . get_bloginfo('name') .'" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;" ><div class="td-sp td-sp-share-twitter"></div><div class="td-social-but-text">Twitter</div></a>
                    <a class="td-social-sharing-buttons td-social-facebook" href="http://www.facebook.com/sharer.php?u=' . urlencode(get_permalink()) . '" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><div class="td-sp td-sp-share-facebook"></div><div class="td-social-but-text">Facebook</div></a>
                    <a class="td-social-sharing-buttons td-social-google" href="http://plus.google.com/share?url=' . get_permalink() . '" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><div class="td-sp td-sp-share-google"></div><div class="td-social-but-text">Google +</div></a>
                    <a class="td-social-sharing-buttons td-social-pinterest" href="http://pinterest.com/pin/create/button/?url=' . get_permalink() . '&media=' . (!empty($image[0]) ? $image[0] : '') . '" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><div class="td-sp td-sp-share-pinterest"></div><div class="td-social-but-text">Pinterest</div></a>
                </div>';
        }

        return $buffy . '</div>';
    }

here: http://screencast.com/t/FRoZLoFTFFQ

2. Add this: <?php echo $td_mod_single->get_social();?> like here: http://screencast.com/t/oQ587egNmFo

Thanks!

zelatech
Participant
#0

i have this issue with facebook share on digg digg plugin.

when i click on, the box is broken and under post text.. (see attachment). can you help me to fix?

http://content.screencast.com/users/zelatech/folders/Default/media/a49a8607-8548-42f4-b1ba-a7edfdd866ae/07-12-2013%2011-10-13.jpg

Viewing 13 results - 126 through 138 (of 138 total)