Can I Edit Block3?

Posted in: Newspaper
Post count: 39

Hi,

I am using Block3 on my homepage. How can I add Facebook and Twitter under each photo like this? What php file do I edit? Click here… Block3 with Facebook & Twitter Block3

Thank You

Post count: 39

Any suggestions please. I really need to get something for this today. Sorry for the rush.

Just point me to the file I should be editing.

Thanks again.

Post count: 39

Would it be td_module_6.php? Something like this?

<?php echo $this->get_image(‘art-wide’);?>
INSERT MY CODE HERE???
<?php echo $this->get_title(td_util::get_option(‘tds_mod6_title_excerpt’));?>

Post count: 6600

Hi,

Sorry for the delay,

Yes you must place your code there but keep in mind that it’s not an easy task and if you don’t know how to do it probably it would be best to hire a freelancer to that for you.

Thanks for your message

Post count: 39

Can we just add this code from the social sharing? Or can you help modify that for us?

<?php echo $this->get_image(‘art-wide’);?>
<?php echo $this->get_social_sharing();?>
<?php echo $this->get_title(td_util::get_option(‘tds_mod6_title_excerpt’));?>

Post count: 6600

Hi,

Please add this code: http://pastebin.com/Pjjxr6bn like here: http://screencast.com/t/vEwlVMtn

Also add this custom CSS in Theme Panel > Custom CSS:

.td_mod6 .thumb-wrap {
margin-bottom: 0px;
}

.td_mod6 .td-social-sharing-buttons {
width: 50%;
margin-top: 0px;
margin-right: 0px;
}

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

Thanks

Post count: 39

PERFECT! Thank you so much. It works great.

Post count: 39

Wait.. I spoke too soon. Sorry

GOOD — The Twitter “Tweet this” works great.

BAD — The Facebook “Share this” does not work. The URL is cut off for the homepage. It only shows this… http://www.facebook.com/sharer.php?u=/ BUT… The Facebook “Share this” works fine on internal pages.

Any idea what’s going on here?

Post count: 39

Any luck?

Post count: 39

Hi Lucian, Any ideas why the facebook wouldn’t work on the homepage only?

Thanks

Post count: 6600

Hi,

Can you please send an URL of your site so I can check.

Thanks

Post count: 39

It is a secure site for internal users right now. You won’t be able to view it. You have to log in.

Post count: 263

I’m following this post, so keep it on here if you will 🙂 this would be a great feature.

Post count: 39

Hi Lucian, Can you try it on your end locally please? I still can not get it to work on the homepage.

Post count: 6600

Hi,

@digitial2 The Facebook sharing doesn’t work locally, you have to be online to work. The issue is on post too not only on homepage, i have checked myself, locally it doesn’t work but online it works fine.

Thanks

Post count: 39

We are online. Like I said.. everything works great except the facebook on the homepage only. The facebook works great on internal pages.

Post count: 6600

Hi,

Can you please send a link to your site, i’d like to inspect it, also if you will please send an e-mail at contact@tagdiv.com with your wp-admin username and password so i can check this issue, please include a link to this topic.

Thanks

Post count: 263

And I’m guessing changing all td_mod6 to td_mod3 would adjust it to show like this on module 3, correct?

Post count: 6600

Hi,

Not exacly, module 3 has a diffrent layout, if you want to add this for module 3 you have to add it in td_module_3.php like this http://screencast.com/t/pEMMzPz0c and add this CSS in Theme Panel:

.td_mod3 .td-social-sharing-buttons {
position: relative;
left: 110px;
width: 33%;
margin: 0px;
}

You can make them look as you like using via CSS.

Thanks

Post count: 39

Hi Lucian,

We finally lifted the password off the site and made it public today… https://share.america.gov/

As we discussed before… The facebook “Share This” link is still not working on the homepage. But, it works great on all internal pages. We are still using the td_module_6.php file.

Please help!

Thanks
David

Post count: 6600

Hi,

Please add this: http://screencast.com/t/i4A030fl1AMX and check again, please make sure you empty cache and purge files if you use nay CDN or cache plugins.
You could also use this tool to force Facebook to see what info Facebook get’s from your site and to force it to get the new info if changed: http://screencast.com/t/FXUDcG2kpn
Hope this helps!

Thanks

Post count: 39

Perfect! Thanks. The homepage links work now.

BUT…. what if we want to make it a little more customized? Like this…

1. The share links on the homepage (Twitter & FB) should add UTM params – https://share.america.gov/?utm_source=shareamerica&utm_medium=homepage&utm_campaign=list — replace “https://share.america.gov/&#8221; with the full URL of the article and put today’s date in there too

2. The share links on the individual post for the similar articles (Twitter & FB) should add UTM params – https://share.america.gov/?utm_source=shareamerica&utm_medium=postpage&utm_campaign=similararticles-YYYY-MM-DD : replace “https://share.america.gov/&#8221; with the full URL of the article

3. The share links on the individual post for top share buttons (Twitter & FB) should add UTM params – https://share.america.gov/?utm_source=shareamerica&utm_medium=postpage&utm_campaign=sharetop-YYYY-MM-DD : replace “https://share.america.gov/&#8221; with the full URL of the article

4. The share links on the individual post for botom share buttons (Twitter & FB) should add UTM params – https://share.america.gov/?utm_source=shareamerica&utm_medium=postpage&utm_campaign=sharebottom — replace “https://share.america.gov/&#8221; with the full URL of the article

Can this be done?

Thanks,
David

Post count: 6600

hi,

After a quick search found that Google Analytics allows monitoring of links in Google Analytics using UTM source. I have pasted bellow some URL’s where you can read more about this:

* https://support.google.com/analytics/#topic=3544906
* http://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/
* http://www.wpbeginner.com/wp-tutorials/how-to-track-links-in-wordpress-using-google-analytics/

Hope this helps!

Thanks!

Post count: 1

Hi,

Great job. I use the block 2. If i would like the same result, what’s the code and where i paste it ?

Thanks

Post count: 388

(Quick note: after checking share.america.gov just now, I found the Twitter and Facebook links on images were both working fine. Hopefully you’ve resolved your problem!)

Viewing 25 posts - 1 through 25 (of 33 total)
You must be logged in to reply to this topic.