Search Results for 'facebook share text'

    No search results were found in Documentation!

Results from the Forum
emreerkan
Participant
#0

Hello there,

There is no schema.org support for featured videos. I had to add myself and I want to share it with you. Maybe you’ll include this in the future releases and maybe others find it useful. Thanks.

First of all I suggest using a child theme to accomplish this otherwise you have to alter theme files and these changes might get lost in the next update. Copy under from theme folder to your child theme includes/wp_booster/td_video_support.php file (with folder structure). Change the render method with the one below;


	/**
	 * Render a video on the fornt end from URL
	 * @param $videoUrl - the video url that we want to render
	 *
	 * @return string - the player HTML
	 */
	static function render_video($videoUrl) {
		$buffy = '<div class="wpb_video_wrapper">';
		switch (self::detect_video_service($videoUrl)) {
			case 'youtube':
				$buffy .= '
                    <iframe id="td_youtube_player" width="600" height="560" src="' . 'https://www.youtube.com/embed/' . self::get_youtube_id($videoUrl) . '?enablejsapi=1&feature=oembed&wmode=opaque&vq=hd720' . self::get_youtube_time_param($videoUrl) . '" frameborder="0" allowfullscreen=""></iframe>
                    <script type="text/javascript">
						var tag = document.createElement("script");
						tag.src = "https://www.youtube.com/iframe_api";

						var firstScriptTag = document.getElementsByTagName("script")[0];
						firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

						var player;

						function onYouTubeIframeAPIReady() {
							player = new YT.Player("td_youtube_player", {
								height: "720",
								width: "960",
								events: {
									"onReady": onPlayerReady
								}
							});
						}

						function onPlayerReady(event) {
							player.setPlaybackQuality("hd720");
						}
					</script>
                ';

				break;
			case 'dailymotion':
				$buffy .= '
                        <iframe frameborder="0" width="600" height="560" src="' . td_global::$http_or_https . '://www.dailymotion.com/embed/video/' . self::get_dailymotion_id($videoUrl) . '"></iframe>
                ';
				break;
			case 'vimeo':
				$buffy = '
                    <iframe src="' . td_global::$http_or_https . '://player.vimeo.com/video/' . self::get_vimeo_id($videoUrl) . '" width="500" height="212" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
                ';
				break;
			case 'facebook':
				/**
				 * cache & oembed implementation
				 */
				$cache_key = self::get_facebook_id($videoUrl);
				$group = 'td_facebook_video';

				if (td_remote_cache::is_expired($group, $cache_key) === true) {

					// cache is expired - do a request
					$facebook_api_json = td_remote_http::get_page('https://www.facebook.com/plugins/video/oembed.json/?url=' . urlencode($videoUrl) , __CLASS__);

					if ($facebook_api_json !== false) {
						$facebook_api = @json_decode($facebook_api_json);

						//json data decode
						if ($facebook_api === null and json_last_error() !== JSON_ERROR_NONE) {
							td_log::log(__FILE__, __FUNCTION__, 'json decode failed for facebook video embed api', $videoUrl);
						}

						if (is_object($facebook_api) and !empty($facebook_api->html)) {

							//add the html to the buffer
							$buffy = $facebook_api->html;

							//set the cache
							td_remote_cache::set($group, $cache_key, $facebook_api->html, self::$caching_time);
						}

					} else {
						td_log::log(__FILE__, __FUNCTION__, 'facebook api html data cannot be retrieved/json request failed', $videoUrl);
					}

				} else {
					// cache is valid
					$api_html_embed_data = td_remote_cache::get($group, $cache_key);
					$buffy = $api_html_embed_data;
				}
				break;
			case 'twitter':

				/**
				 * cache & oembed implementation
				 */

				$cache_key = self::get_twitter_id($videoUrl);
				$group = 'td_twitter_video';

				if (td_remote_cache::is_expired($group, $cache_key) === true) {

					// cache is expired - do a request
					$twitter_json = td_remote_http::get_page('https://publish.twitter.com/oembed?url=' . urlencode($videoUrl) . '&widget_type=video&align=center' , __CLASS__);

					if ($twitter_json !== false) {
					$twitter_api = @json_decode($twitter_json);

						//json data decode
						if ($twitter_api === null and json_last_error() !== JSON_ERROR_NONE) {
							td_log::log(__FILE__, __FUNCTION__, 'json decode failed for twitter video embed api', $videoUrl);
						}

						if (is_object($twitter_api) and !empty($twitter_api->html)) {

							//add the html to the buffer
							$buffy = $twitter_api->html;

							//set the cache
							td_remote_cache::set($group, $cache_key, $twitter_api->html, self::$caching_time);
						}

					} else {
						td_log::log(__FILE__, __FUNCTION__, 'twitter api html data cannot be retrieved/json request failed', $videoUrl);
					}

				} else {
					// cache is valid
					$api_html_embed_data = td_remote_cache::get($group, $cache_key);
					$buffy = $api_html_embed_data;
				}

				break;
		}
 		$buffy .= sprintf( '
<script type="application/ld+json">
{
	"@context": "http://schema.org",
	"@type": "VideoObject",
	"name": "%1$s",
	"description": "%2$s",
	"thumbnailUrl": "%3$s",
	"contentUrl": "%4$s"
}
</script>',
 			esc_attr( get_the_title() ),
 			esc_attr( get_the_excerpt() ),
 			get_the_post_thumbnail_url( get_the_ID(), 'featured' ),
 			$videoUrl
 		);
		$buffy .= '</div>';
		return $buffy;
	}

For better indentation and readability see: https://pastecode.xyz/view/399f6207

Bikos
Participant
#0

Good afternoon,

I tried to use Facebook share from an article and the image is now visible (see link below)
http://prntscr.com/lerph5
I was wondering how is it possible to make a Facebook share appear like this with a big image above the text (see link below).
http://prntscr.com/lerpxx

Thanks in advance,
Constantinos S.

stevemanes
Participant
#0

When I try to share a post via the Facebook share button, the preview actually has teaser text for another post (my “About” page text). A View Source shows that <meta property=”og:description” content=”XX”> is set with the correct description text:


<meta property="og:image" content="http://xxxx.com/wp-content/uploads/2018/07/bmw-plant.jpg" />
<!-- This site is optimized with the Yoast SEO plugin v7.8 - https://yoast.com/wordpress/plugins/seo/ -->
<!-- Admin only notice: this page does not show a meta description because it does not have one, either write it for this page specifically or go into the [SEO - Search Appearance] menu and set up a template. -->
<link rel="canonical" href="http://stoophang.com/bmw-and-tesla-to-build-new-plants-in-china/" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="BMW and Tesla to build new plants in China | Stoophang" />
<meta property="og:description" content="BMW announced this week that it will be building two new plants in China and downsizing its US plant in Spartanburg, SC. Currently, the South Carolina plant focuses on BMW’s mainstream SUV production which it exports to 140 countries. According to the Munich-based BMW, the company needs to do this to avoid the 40% tariff …" />
<meta property="og:url" content="http://xxxx.com/bmw-and-tesla-to-build-new-plants-in-china/" />
<meta property="og:site_name" content="XXXX" />

Alexandr Andriitsev
tagDiv Member

Hello Catalin,

I am sorry but it is not as expected: try to share the main page (https://soborka.news/) in you facebook you will see that when you put a link and FB starts to pull the image in description text it will be wrong. As on my and you screen. It says that site in the maintenance mode. We are talking only about main page.

Thank you for understanding!

Alexandr Andriitsev
Participant
#0

Hello team,

For some reasone whe I share the main page in FB it shows me the screeno and text od maintanence mode.

But the maintanence lpugins is turend off and I have even deactivated it.

The rest of the posts shares fine.

I have tried to modify the description with free SEo Yoast but it doesent take effect on share text.

The site main page https://soborka.news

Screen from FB
http://prntscr.com/k4xp1y

Thank you in advance!

janellelcarter
Participant
#0

Hi,

When I try to share posts to Facebook I sometimes end up with no image and a heap of text that I don’t want included in the preview such as the categories, social media buttons etc. Then the next time I share the same post I get an image but still some text I don’t want to show such as the categories.

To better explain what I’m talking about, when I try to share this post://revesbyparents.com.au/2018/06/29/lambeth-reserve-picnic-point/

The first time I got the preview on the left and the second time I got the preview on the right as shown here:
https://revesbyparents.com.au/wp-content/uploads/2018/06/SharingProblems.png

It might just be that the image didn’t have time to load the first time I tried to share it. Either way, I don’t want the categories included in the Facebook preview. How can I get full control over what is shown in the social media previews?

I’ve seen Yoast SEO mentioned in the forums. Is this a plugin that is guaranteed to be fully compatible with Newspaper theme? Is it something you would recommend we use or is there another way we can do this without having to install a plugin?

Thank you!
Janelle

ultrawirt
Participant
#0

When trying to share an article or post to Facebook, it includes information that I do not want displayed. I’ve attached a screenshot to show what I’m talking about. The second line repeats the show title, and also shows the date, and for some odd reason shows the names of the other social sharing icons I have active on the site in the order as they appear…Facebook, Twitter, Google+,etc.
All I want is either an excerpt from the article under the title and image, or even better nothing all expect the image, the show title and maybe the date it was published. But honestly, if I can’t have anything except the title and image I would be good with that. Showing Facebook, Twitter, Google+ before any article text makes the site look amateurish, which is not what I want from the Newspaper theme. Please, could you help with this issue? I really don’t want to have to deal with using 3rd party plugins to solve this. Isn’t there some setting or custom css I can slap in and remove all that stuff in one fell swoop? Here’s a link to the main website so you can see it action for yourself:
https://davidfeldmanshow.com/

And attached is what it looks like in a preview of what will be shared to Facebook:
https://davidfeldmanshow.com/wp-content/uploads/2018/06/Michaels-No-Roy-Cohn.jpg

cccadmin
tagDiv Member

I uploaded the plugin and it’s working great. However, now when I try to share posts on Facebook it doesn’t fetch the preview picture or preview text. I only get something that looks like this.

https://www.screencast.com/t/qEAPSPCRIl

Any idea why?

Sirius Pro
Participant
#0

Hi

I set up share icon with text, translate it but there is a still “Facebook” instead of my translation.
https://porady.org/gdzie-wyjechac-na-majowke

tomatoco
Participant
#0

Hi,there.

I’d like to know the additional sharing button.
I read old forum but I could’t find exact answer and some answer is old.

“td_social sharing” in /include/wp_booster seems to be pertinent section but no effect to Sharing on Theme Panel.

added to this code.

private static function get_service_share_info($service_id) {
$page_permalink = esc_url(get_permalink());
$page_id = get_the_ID();
$page_title = get_the_title();

switch ( $service_id ) {

case 'facebook':
return array(
'url' => 'https://www.facebook.com/sharer.php?u=' . urlencode($page_permalink),
'title' => 'Facebook'
);
break;

case 'twitter':
$twitter_user = td_util::get_option( 'tds_tweeter_username' );
return array(
'url' => 'https://twitter.com/intent/tweet?text=' . htmlspecialchars(urlencode(html_entity_decode($page_title, ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8') . '&url=' . urlencode($page_permalink) . '&via=' . urlencode( $twitter_user ? $twitter_user : get_bloginfo( 'name' ) ) ,
'title' => 'Twitter'
);
break;

Do I have to change other code as well??

dabbou2508
Participant
#0

Hello my site is ai-europe.eu and everything works great with this theme. But I wanted to share my Homepage (not a Blogpost!! ) to FB and Linkedin. I took the Adresse out of the Browser and pasted it in an FB Post And the strangest thing occurred.

The image and Text I have never defined or typed in. Its a weird text. Facebook Picture

On LinkedIn it was even weirder:

LinkedIn
Thats a picture from a Blogpost I did. and no Text at all.

Where can I edit this ?? Where can I define which picture is displayed and the text I want to share ?
Please help .. Thank you so much.

Love the Newspaper- Theme

kame
Participant
#0

Hi!

I’m a new user. First of all, I have to congratulate you because of your work. I really love the Newsmag theme.
Now my questions:

1. It’s possible to edit the News Ticker? I just want to remove the button “TRENDING NOW” and keep only the text.
2. I’m using “Style 6 – Top menus + logo and ad” on the header. Can I center the logo instead of having it at the left side?
3. I love to put a Newspaper style grid in my homepage, Newsmag don’t have this style. If it’s possible to import features from the other theme? I tried just changing the names of the files but it doesn’t work. xD
4. I tried two different plugins to use facebook comments instead the wordpress ones, but always happen the same. The facebook comments are placed just after the text of the post. Before the share buttons. Did you tested any plugin.
Screen Capt. https://ibb.co/cDd1cc
5. In the smartphone mode the bar is too short, and my logo is hardly readable. Is possible to make it taller?
6. How can I add more social share buttons to the posts? Reddit for example.
7. In the Social Counter plugin, Instagram bar appears blue. Don’t you think that purple is more accurate to the Instagram logo?
8. I disabled “SHOW COMMENT COUNT” and “ENABLE COMMENTS ON POSTS” but sometimes it appears a logo in the article when I’m in the homepage. What I’m doing wrong?
Screen Capt. https://ibb.co/eT7Bcc (First grid’s post)

Thanks in advance,
Angel L.

gbouquet
Participant
#0

Hello,

How to display different formatting of social share buttons?
Example on this page: https://demo.tagdiv.com/newspaper/wordpress-news-magazine-charts-the-most-fashionable-new-york-couples-in-2016/&gt; Facebook and Twitter have the text posted at right of the icon, and not for google + nor pinterest.

thank you for your reply

oliviaperegrino
tagDiv Member

If I share a post on Facebook, that’s how it looks: http://www.radarenlinea.com/wp-content/uploads/2018/01/Post-preview.png

The same goes for all posts. Below the title appear the category, title, author, date and number of comments. I have underlined those words that I don´t want to be seen before the text (category, title, author, date and number of comments).

On the other hand, my demo (World News) does not have the option of excerpts

Mariano Jonte
Participant
#0

Hello, I wanted to know if there are ways to modify the shared content directly to Facebook and Twitter. More than anything the accompanying texts. There is an optimization or personalization code for them.
Please see screenshots to understand what I mean.
Greetings.

https://ibb.co/haKgCR
https://ibb.co/hgAXK6

rweissjones
Participant
#0

Two issues on this subject-
1. When you click on an article to read it, the social buttons appear under the headline. Is it possible to delete the ‘share on Facebook’, ‘tweet on Twitter’ text so only the social icons appear? And can I control what social icons appear? I only want facebook, twitter, pinterest. (Do NOT want G+, Google+) Link to our site:https://kuellife.com/2018/01/08/oprah-stops-the-show-golden-globes-2018/

2. The social buttons also appear at the bottom of the article, again is it possible to delete the ‘Facebook’ and Twitter text so just the social icons appear? And again, can I choose which ones appear? and if we decide we want to remove this ‘social button/icon box’ completely, is that possible?

Also can I change the text in ‘Leave a Reply’ to say ‘Leave a comment’ ?

Thanks for your help!

Alex
Participant
#0

Salut,

Am actualizat tema la ultima versiune și apreciez noile opțiuni de partajare. Chiar și așa, întâmpin câteva probleme:

  1. Butonul „like” pentru Facebook este afișat deasupra celorlalte iconițe. Anterior era în dreapta lor și părea mai bine. Se poate face să fie afișat la fel? https://imgur.com/VUQDe87
  2. Nu mai apare butonul „tweet”. Se poate face să reapară?
  3. Butonul „Share” afișat la activarea BOTTOM ARTICLE SHARE TEXT nu poate fi tradus sau am omis eu ceva?https://imgur.com/VUQDe87
  4. În setările temei nu îmi apar corect siglele rețelelor de socializare: https://imgur.com/fZfwSE2
  5. Mulțumesc!

sk_rocks
Participant
#0

I would want all images of my gallary to be using lazy loading just like the demos. Is there any setting or I have to add some class for each images ?

Also alt/title text are not generated for gallery images. I have added some features like facebook like/share buttons to gallery image but not sure how to add title and alt.
https://imgur.com/a/fEYVW

Bogdan B.
tagDiv Staff

You can try it by altering the padding of the buttons, but it has to be made for each button in particular. It will be a bit of a hassle to change the padding and icon/text position for each button.

Here is an example for facebook:

.td-post-sharing-bottom .td-social-facebook{
padding: 10px 22px 4px 9px!important;
}

The textshare on facebook to match the top one can be added here: https://www.screencast.com/t/MBF1tFvOSngl

Thanks

Simion C.
tagDiv Staff

Hi,

I could not say how you could do that. I don’t think there is an option for this in the Yoast SEO plugin, the theme certainly does not have options to control the Facebook share. I believe there will always be a description. If there isn’t one entered for each post
https://www.screencast.com/t/Jc6hp5dgw
Then I think the description text will be taken from the first paragraph found.
The post you mention does have a description from what I can tell
https://www.screencast.com/t/kgRoHcklCEP

Thanks

alexliu0317
tagDiv Member

Hello,

I found two more issues on top of the previous one. Already emailed, could you please write me an email when this is looked?

http://jazko.com/category/fashion/page/3/
http://jazko.com/category/fashion/style/page/2/

However, I realized there are another 2 problems. When you click on any of the article, and scroll down to related articles, there are usually 3 …they are there without images only the texts and links , which is incorrect from my setting.

Another problem is people are able to share via Facebook. However, when they click like several times (same person did it on purpose), it will be 1 off 1 off…black…then the number shows 2…then …based on the article is brand new and was at 0. Can you please double check if something is wrong with that option? Not saying I’d like to do that on purpose…but a colleague of mine did that and discovered this “issue”.

We are not sure if we can keep on updating articles, so it’d be better to know when this investigation and issue is being taken care of.

Thank you.

boka003
tagDiv Member

Hi,

Thank You for reply.

Only think that i add is this in global java

// Anonymous "self-invoking" function
(function() {
// Load the script
var script = document.createElement("SCRIPT");
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';
script.type = 'text/javascript';
document.getElementsByTagName("head")[0].appendChild(script);

// Poll for jQuery to come into existance
var checkReady = function(callback) {
if (window.jQuery) {
callback(jQuery);
}
else {
window.setTimeout(function() { checkReady(callback); }, 100);
}
};

// Start polling...
checkReady(function($) {
// Use $ here...
});
})();

jQuery(document).ready(function()
{var imavidea=false;
var imafacebookvidea=false;

//Ovdje ide facebook embed code
var facebookembedlink='<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2FVideoCraftStudioProduction%2Fvideos%2F825894130902546%2F&show_text=0&width=560" width="560" height="315" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>';

//Ovdje ide youtube video link
var videolink="https://www.youtube.com/embed/tsPGxI4J4FI";
if(imavidea)
{
jQuery(".td-big-grid-post-4").html(jQuery(".td-big-grid-post-3").html());
jQuery(".td-big-grid-post-3").html(jQuery(".td-big-grid-post-2").html());
jQuery(".td-big-grid-post-2").html(jQuery(".td-big-grid-post-1").html());
jQuery(".td-big-grid-post-1").html(jQuery(".td-big-grid-post-0").html());
jQuery(".td-big-grid-post-1 img").css({"height":"100%", "width":"100%"});
if(!imafacebookvidea){
jQuery(".td-big-thumb").append('<iframe width="100%" height="100%" src="'+videolink+'?autoplay=1" frameborder="0" style="position:absolute; top:0;left:0; right:0; bottom:0; z-index:10" allowfullscreen></iframe>');}
else
{
var facebookispravljen=facebookembedlink.split('"400"').join('"100%"');
facebookispravljen=facebookispravljen.replace('overflow:hidden"','overflow:hidden;position:absolute; top:0;left:0; right:0; bottom:0; z-index:10; "');
jQuery(".td-big-thumb").append(facebookispravljen);
}
}
// jQuery("li.comment section.content").each(function(){jQuery(this).html(jQuery(this).html().replace(/<br/g, '<br/><br'))});
jQuery("body.single article header").first().append('<div class="sharedaddy sd-sharing-enabled">'+jQuery("div.sharedaddy").html()+'</div>');
setTimeout(function(){jQuery("#gk-content-top").css({"max-height":"500px","margin-bottom":"0"});},1);
setTimeout(function(){jQuery("#gk-banner-top").css({"transition":"all 1s","-webkit-transition":"all 1s","-ms-transition":"all 1s","-o-transition":"all 1s"}).css("margin-top","0");},1);

jQuery("#gk-mainbody-top #widget_gk_nsp-24 .gk-nsp-arts img").each(function(){var sors= jQuery(this).attr("src"); sors="wp-content/uploads/"+sors;jQuery(this).attr("src",sors);})

}

);

jQuery("#gk-inset").before('<div id="youtube_responsive-4" class="box widget_youtube_responsive">'+jQuery("#execphp-6").html()+'</div>');jQuery("#execphp-6").hide();
/* jQuery(document).ready(function(){
var a=jQuery("#execphp-6").html();
jQuery("#execphp-6").html("");
jQuery("#youtube_responsive-4").html(a);

})*/

Here is my system status: http://prntscr.com/h3orse

I have updated theme, and this is happend before update, i think update is not problem.

danos
Participant
#0

Hi we recently made a news blog for a customer. http://www.serrespost.gr
I noticed that when the client shares a post to facebook the excerpt text looks wrong..
Instead of displaying the first lines of the main article it displays tags and the title again!
The facebook page is: https://www.facebook.com/Serrespost-1884628254895723
(Note the client share posts for another site too -verrosike.gr- which is displaying just fine)
Thank you very much,
Iordanis

meri
Participant
#0

Hi, some texts aren’t translated into my language (French), like “search”, “share on facebook” or “leave a reply”. Where can I find all the texts to double-check and translate them all?

Viewing 25 results - 26 through 50 (of 138 total)