Search Results for 'sharing'

Results from the Forum
Anonymous
tagDiv Member

“Suggestion for adding if single in frond of the ads code? It prevents ads from showing up on category pages, the homepage and other pages”

The advertisement only shows up on the homepage for me and I hide it using CSS.

“Is it possible to add author info and tags to this function? Because all things in the footer like tags, source and author info will show beneath the sharing buttons and comment box.”

No the author info and tags will show above the comment box and under the content.

antoine
tagDiv Member

I want to move the comment from the bottom of the post to the footer just after the social sharing and before the pagination.
I want to do this the module_1.php file.
Thanks

r1kay
tagDiv Member

Is it possible to add author info and tags to this function? Because all things in the footer like tags, source and author info will show beneath the sharing buttons and comment box.

antoine
tagDiv Member

Thanks for the quick reply,
but your code just remove the comment and when i put this in the footer :
$buffy .= $this->get_social_sharing();
$buffy .= comments_template(”, true);
$buffy .= $this->get_post_next_prev_pagination();

the comment box appear on the top of the post.

antoine
Participant
#0

Hello,
I want to move the comment part to the footer, i didn’t found how to do that.
Like here :
$buffy .= ‘<footer class=”clearfix”>’;
$buffy .= apply_filters(‘td_post_after_source_via’, ”);
$buffy .= $this->get_social_sharing();
/*COMMENT HERE … comment_template() …*/
$buffy .= $this->get_post_next_prev_pagination();
$buffy .= $this->get_review();
$buffy .= apply_filters(‘td_post_after_review’, ”);
$buffy .= $this->get_the_tags();
$buffy .= apply_filters(‘td_post_after_tags’, ”);
$buffy .= $this->get_source_and_via();

$buffy .= apply_filters(‘td_post_after_socials’, ”);
$buffy .= $this->get_next_prev_posts();
$buffy .= apply_filters(‘td_post_after_next_prev’, ”);
$buffy .= $this->get_author_box();
$buffy .= apply_filters(‘td_post_after_author_box’, ”);
$buffy .= ‘</footer>’;

Thanks

r1kay
tagDiv Member

I edited the code a little more and got it working. However, i know run into the same problem as Octavian. The reviews shows up beneath the sharing buttons and comment box i inserted. Can’t we use the include() function to somehow get the get_review working? My code now looks like this:

function content_injector($content) { 
		global $wp_query;	
		$postid = $wp_query->post->ID;                  
		if (is_single((get_post_meta($postid, 'top_ad', true) != 'off' )))  {	
$top_ad = do_shortcode('[td_ad_box spot_name="Ad spot -- topad"]');
} 		
		if (is_single((get_post_meta($postid, 'bottom_ad', true) != 'off' ))) {	
$bottom_ad = do_shortcode('[td_ad_box spot_name="Ad spot -- topad"]');
}
 if (is_single()) {
$custom_share = '<div id="title-deel"><h4 class="block-title"><span>DEEL</span></h4></div>' . do_shortcode('[ssba]');
$facebook_comments = '<div id="title-reageer"><h4 class="block-title"><span>REAGEER</span></h4></div>' . '<div class="fb-comments" data-href="' . get_permalink() . '" data-colorscheme="light" data-numposts="5" data-mobile="false" data-width="700"></div>';
}	
$content = $top_ad . $content . $bottom_ad . $custom_share . $facebook_comments;
return $content; 

}
add_filter('the_content', 'content_injector');

Oh and Octo, u might want to add the if_single code to your ads code like i did to prevent them from showing up on the homepage and other pages!

r1kay
tagDiv Member

You can manually move the get review code in td module 1 to somewhere else on the page. It is located in the footer clearfix of the module 1 file. Thats how i added my own social sharing buttons an fb comments box and moved the get next and prev post to the bottom of the post pages.

Kennylovescamping
tagDiv Member

Marius and Christopher… Shareaholic WAS working for me fine. At the same time that shareaholic was working, I had the basic social sharing buttons from the theme as well, so it looked kinda funny. Once I had turned the social sharing buttons OFF in the theme options, it turned the original theme’s share buttons off, but it also turned shareaholic’s sharing buttons and related content off as well. So i went ahead and turned the sharing feature back on in the theme customization section and sure enough the original theme’s share buttons came back on, but now shareaholic is nowhere to be found on the page. Not quite sure what I’m doing wrong, but it seems like this is an issue… I will try out the adthis plugin and see if I have any different results and update everyone…

r1kay
tagDiv Member

Well i’ve found another post regarding to the single.php and figured it out myself. Here’s the solution:

$buffy .= '<br><h4 class="block-title"><span>DEEL</span></h4>';
			$buffy .= do_shortcode('[ssba]');

$buffy .= do_shortcode(‘[ssba]’) is the code that triggers my social sharing buttons plugin.

I’ve added this to line 58 in themes/Newspaper/includes/app/modules/td_module_1.php. Any modification to the standard post lay-out (normally made in single.php) can be made in this file.

r1kay
Participant
#0

Hi,

I just installed a plugin that adds social sharing buttons below the content. I would like to add the block title as used everywhere in theme above it, but i don’t know where to add this code: <h4 class="block-title"><span>SHARE</span></h4>

Here’s a link to my website so you can have a look:

Normally i would have added it to the single.php file, but this theme builds up the posts differently than other themes. On my other websites i could just paste the code in the single.php. Also, i would like to place the previous and next post buttons above the sharing buttons.

Also, i want to add the facebook comment box below the share buttons and above the related content block. Where do i add the facebook code?

Kennylovescamping
tagDiv Member

Thanks Christopher and Arved007… I found where you are talking about the option to turn off sharing in the customizer section of the theme… I somehow overlooked that when looking at it earlier. I WAS able to turn the built in social sharing OFF, but I’m still not quite sure how to get my shareaholic social sharing plugin to work now that it’s turned off. I’m not extremely great with coding, I have a VERY basic knowledge of it so it takes me some time to figure stuff out.

Now that I have the built in social sharing turned OFF, how can I get shareaholic to work with this theme? It doesn’t look like shareaholic has the same php files like you described in your post Christopher. Any additional light you can shed on this would be great!

Thanks!

Kennylovescamping
tagDiv Member

Ok, I have a similar, but different questions. How do I REMOVE the social sharing buttons? I want to use another plugin called SHAREAHOLIC because the 4 basic sharing buttons (twitter, facebook google and pinterest) are not what I like for my site.

I thought I’d find the files in the single.php file, but I can’t seem to get rid of them…. Any ideas?

simchris
Participant
#0

HI, folks
for many of you (including us), we wanted to use slightly different method for the social media buttons at bottom of the post in the theme, and for some reason with the default theme setup and using Yoast SEO plugin, the Pinterest image would never populate even with all the Pinterest-friendly code in the head of the theme.

So, starting playing with using the WP AddThis plugin, however its main flaw (and those folks are really dumb in not updating to include the async code which EVERYBODY has been requesting for the pat year – and which can be easily fixed).

Finally, I took look at plugin and sorted out how easy it is to “hack that” for your site. While there are many choices for plugins, or managing “on page” code, we’ve found over the past five years, that the AddThis plugin when used async mode, actually is very consistent and doesn’t adversely impact our pages. Your mileage may vary. Still, think about how many websites have those little orange [+] buttons for sharing and AddThis has big installed base.

So, here is how to do this – was going to post this in my blog, and will later, but redoing my website right now and well, I just hacked our Newspaper theme site to do this, so thought I’d pass it along.

This assumes you will
1) turn off the social media option in the control/customizer panel for the theme, on posts.
2) download the AddThis plugin v 3.5.6+ (the one from the AddThis company) and open file in the plugin folder to edit one line;
3) upload the modified plugin to your /wp-content/plugins/ folder via FTP
4) activate plugin
5) choose settings for plugin as to whether you want the pill buttons with balloons showing number of shares/likes, or the speedier share buttons without the “phone homes” to get read/share numbers (which slow down your website and pagespeed, btw).

So, once you have plugin:
in the folder, you’ll be editing this file:
addthis/includes/addthis_addjs.php

You can edit in notepad, simpletext, or whatever (I use the awesome TEXTPAD 5 on Windows7); do not edit in a word processor like Pages, or OpenOffice, MS Word, etc.

around about line 166-167 you will see this:

    function addWidgetToJs(){
        $this->jsToAdd .= '<script type="text/javascript" src="//s7.addthis.com/js/'.$this->atversion.'/addthis_widget.js#pubid='. urlencode( $this->pubid ).'"></script>';
    }

and you will simply change to: (YOURID is your publisher id you get when creating an AddThis account, which is free; includes tracking if you want that, zero cost, and no impact on SEO or link pollution). If you have no publisher ID, simply remove #pubid=YOURID — IMPORTANT, do *NOT* put in a publisher ID in the AddThis WP control panel as you’re manually over-riding the insert variable here.

    function addWidgetToJs(){
        $this->jsToAdd .= '<script type="text/javascript" src="//s7.addthis.com/js/'.$this->atversion.'/addthis_widget.js#pubid=YOURID#async=1"></script>';
    }

To see this in action:
http://ga-ga.com/1204/beginning-adventure-space-time-reveals-roots-doctor/

Using this hack as of 12.25.13, but if you’re reading this a year later, we might be doing something totally different (view ‘source code’ for page to see whassup).

Hope tha helped somebody.
Once I get our server moved, and my website updated for our main company, my wordpress blog will be back, and I’ll include link to that for more of my little tidbits of tips.

HAPPY HOLIDAYS!

Marius
tagDiv Staff

Hello,
To add ads on all posts you can use Inline ads from Theme Customizer http://screencast.com/t/y1vM96N3 To create a spot ad go to Theme – Option.

For social sharing you can use some plugins if you want, there are a lot on WordPress

Thanks

Marija1m1
tagDiv Member

Hi I have 87/100 and I get these recommendations:
Suggestions Summary
Consider Fixing:
Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 2 blocking script resources and 9 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.

Remove render-blocking JavaScript:
http://smashinbeauty.com/…-includes/js/jquery/jquery.js?ver=1.10.2
http://smashinbeauty.com/…s/jquery/jquery-migrate.min.js?ver=1.2.1
Optimize CSS Delivery of the following:
http://fonts.googleapis.com/…ietnamese%2Clatin-ext%2Ccyrillic&ver=3.8
http://fonts.googleapis.com/…t%2Cgreek%2Clatin-ext%2Ccyrillic&ver=3.8
http://fonts.googleapis.com/…illic-ext%2Clatin-ext%2Ccyrillic&ver=3.8
http://fonts.googleapis.com/…0%2C700&subset=latin%2Clatin-ext&ver=3.8
http://fonts.googleapis.com/…ietnamese%2Clatin-ext%2Ccyrillic&ver=3.8
http://smashinbeauty.com/…aper/external/td-bootstrap.css?ver=1.7.1
http://smashinbeauty.com/…ent/themes/Newspaper/style.css?ver=1.7.1
http://smashinbeauty.com/…k/modules/sharedaddy/sharing.css?ver=2.7
http://widgets.digg.com/css/buttons3.css

any help or?

Marius
tagDiv Staff
SPEED - reply

Hello,

A. We have that plugin tagDiv Speed Booster that improve the them speed but is in beta and could have compatibility issues. That plugin move the javascript bellow. ALso you can move it by yourself if you want.

B. You can try it, make a test speed with and without facebook sharing option.

Also you can use page cache enable from W3 Total Cache plugin.

For more tips you can read in this topic is special opened for speed optimization https://forum.tagdiv.com/topic/pagespeed/

Thanks for your message

Marius
tagDiv Staff

Hello,
Yes we know about that issue with the sharing on pages. We want to change the theme structure to be more similar with wordpress standards. Will be v. 3 available next year and we will fix the sharing on pages to.

Thanks for the message!

simchris
tagDiv Member

vidapropria
1) reduce image sizes either by running compression plugin and/or adding compression factor to your functions file
2) faster server account, if you keep seeing “slow response from server” error — that was a [!] item on your last report speed check — nothing can be done about that with the theme, or in WP; that is how fast the account you have and your hosting provider is responding to ping/start showing the page. For example if you have a $5/month account, upgrade to $10/month account (I’m just using that as example). Low cost accounts are usually on a machine or VPS being shared with 1,000+ other sites. Slightly more costly hosting accounts give more resources to each site, by sharing the resource pool with fewer domains.

Verify deflate/gzip working; remember this only serves up faster versions of your content, but doesn’t optimize them prior to that. I think I saw a 100K image file in your last report … that is waaaaaaaaay too big. Try using smushit plugin and regenerate thumbnails to see if that helps? (Backup images first as changes to images on server will be destructive — meaning they are changed and cannot be unchanged).

Also, for testing if you’re using a child theme, be sure to try NOT using a child theme to see if that gains you a point.

However RECOMMENDED:
1) optimize images before/after upload
2) look at better hosting – if you keep getting “slow to respond” error from Google — no way around that on your side.
3) test without using DISQUS, as this does slow things down. We stopped using it for that reason. We’re leaning toward phasing out comments on most sites, per industry practice now that most comments tend to be trolls and arguments (see: CNN for example). Any comments plugin really slows stuff down on WP. Unless you gain ad revenue from 10,000 visitors per day, it’s not really an essential plugin, and more of a glamour thing (in my opinion).
4) turn off all jetpack stuff for speed test — anything that connects to the WP/Automattic mothership adds latency.

Hope that helped 🙂

————–
as an aside on pagespeed errors:
I’m actually dealing with even more arcane stuff like how to enqueue the parent Theme’s style sheet in the child Theme’s functions.php, to bypass the annoying @import not recommended error from Google which the Automattic folks seem to think is a non-issue. I will post my efforts on THAT noise if anybody cares.

[ UPDATED ]
I just ran your GPS test, and saw you’re up to 82/100 desktop. So, looks like you’re making progress. The images issue is the next thing you need to resolve. You’ll have several points for that, as reducing the footprint of your images speeds up page (e.g., if you go from 300K to 150KB; that’s 50% less time loading images!).

For the minification stuff… note you would need to use a plugin for that (WPminify) although this has some issues; -or- you need to manually minify SOME resources which are not already reduced in size. RADU doesn’t minify all the code as developers have a hard time modifying code if they can’t read it.

So, if you knew there were a couple of large CSS/JS files you might want to minify, you can easily do that using an online tool (I use this one, although it won’t work with IE11/Win7 properly … use Chrome or similar: http://refresh-sf.com/yui/ )

Basically, “minification” of CSS and Java/js files removes the extra spaces, comments, and line breaks to make file “more compact” … so if you had a 125Kb CSS file, by removing all the spaces, line breaks, comments, it might end up being 100Kb, which is the kind of reduction that PageSpeed looks at — the idea being if you had 5 files being loaded on page and you reduced all of them by 20kb – well, that’s 100Kb and is larger than what website developers like me used for the entire page and graphics 10 years ago (we used to shoot for 50kb max page load, if you can imagine that!) …

  • This reply was modified 12 years by simchris.
zelatech
tagDiv Member

thanks thanks thanks 🙂 🙂 🙂

Radu
tagDiv Staff

hello,

add this to the end of style.css


body .dd_buttons .dd_button iframe {
max-width:500px !important;
}
zelatech
tagDiv Member

blogdimoda.com try

Radu
tagDiv Staff

I’ve lost your url, please give it to me.

zelatech
tagDiv Member

same plugin configuration works good on other sites with other themes.. so i thing is a conflict with newspaper theme.. 🙁

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

Marius
tagDiv Staff

Hello,
Please can you give us more details about what issue do you have? Do you mean about the sharing icons on pages?

Thanks for the message!

Viewing 25 results - 5,451 through 5,475 (of 5,508 total)