social count wordpress plugin - wordpress

Hello Im using a social share plugin. It works correctly but the share counts are not showing. can somebody help me find the problem of this plugin? you can download the plugin documents at https://wordpress.org/plugins/responsive-social-share/
Thank you

This plugin can not support counting so for counting you can follow below steps.
Please save and add this js file into your theme folder and call it into header or footer.
http://w.sharethis.com/button/buttons.js
After that add you social icon like this.
<span class='st_sharethis_hcount' displayText='ShareThis'></span>
<span class='st_fblike_hcount' displayText='Facebook Like'></span>
<span class='st_googleplus_hcount' displayText='Google +'></span>
<span class='st_twitter_hcount' displayText='Tweet'></span>
also you can change button style as par your requirement. for more please visit below link.
http://support.sharethis.com/customer/portal/articles/475260-examples#sthash.PE66l82M.dpbs

Related

divi builder in wordpress

I am new to divi builder.
The website is built by another person and it has an issue that I would need to fix.
My question is how and where would I find this line of code:
<div itemscope="" itemtype="https://schema.org/Product">
<ul><li>1× <span itemprop="name">SW-RAF1800</span> (25W fan)</li></ul></div>
I am unable to find the "itemscope", "itemtype", and "itemprop" codes in the backend of the wordpress page.
Any help is highly appreciated!

How to add gallery functionality to WordPress block plugin

I'm wanting to add gallery functionality to a WP Gutenberg block plugin. Easy to add a single image option with the media library, but I'm not sure how I would add the element for a gallery which then gives you all the built in WordPress functionality of caption and drag/drop sorting of the gallery. Having a real hard time finding a tutorial on including this functionality.
I did find one plugin that does just about what I want as the base, but want to extend the block to include other fields. Plugin in question is getwid slider block.
Figured it out.
Needed to add addToGallery=true and gallery=true to the mediaupload tag.
<MediaUpload
addToGallery={true}
onSelect={(media) => {setAttributes({images: [...images, ...media]});}}
type="image"
multiple={true}
gallery={true}
value={images}
render={({open}) => (
<Button className="slider-button select-images-button is-button is-default is-large" onClick={open}>
Add images
</Button>
)}
/>

Unable to configure Twitter feed in Drupal site

I have a website in Drupal and I wants same look of twitter widget as in https://www.stanford.edu/ .
There is a module also available in Drupal for Twitter i.e "Drupal feed".
https://www.stanford.edu/ site is mentioned in this module also.
So please help me out so that i can get same look..
Thanks in Advance..
Note : The code i am using is given below.
<a class="twitter-timeline" href="https://twitter.com/tweettestwidget" data-widget-id="603417854055034880" data-chrome="noheader nofooter noborders transparent" data-tweet-limit="1" data-conversation="none">Tweets by #tweettestwidget</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
I used the Twitter module to create a similar twitter feed.
https://www.drupal.org/project/twitter
You can see the feed I created here http://gekkos.com
You can then display the Twitter feed using a View. Then use Views templates to style the output.
E.g. My Views template file was views-view-fields-tweets--block.tpl.php
<div class="tweet">
<p><a target="_blank" href="https://twitter.com/<?php print $fields['screen_name']->content;?>"><?php print $fields['screen_name']->content;?></a> <?php print $fields['text']->content;?> - <em><?php print $fields['created_time']->content;?></em></p>
Then just style the output using CSS.

Wordpress very strange 404 error with email at end of Url

For my site under wordpress i am having a very wired issue with 404 warning appearing from Google (GWT) and my 404 plugin.
I get hundred of 404 like : /article-name​/email#website.com
I checked everywhere the email doesnt appear on the site and i checked database, those links are nowhere to be found.
Also i removed my email from everywhere on the site and it doesnt help gogle still think those are broken links on my site.
Would you have an idea of how to fix this ?
thx u !
I ran into the exact same problem today and was able to solve it.
Here is my solution:
The root cause for my problem, (likely this one as well) is that I did some social media linking via the theme I installed. There are Facebook page etc, and there is Email.
When rendered
<li class="facebook">
<a href="https://www.facebook.com/your.page" target="_blank">
<i class="fa fa-facebook"></i>
</a>
</li>
And for the email icon, it is the following:
<li class="mail">
<a href="email#website.com" target="_blank">
<i class="fa fa-envelope"></i>
</a>
</li>
when you click on this <a> tag, it will point to /article-name​/email#website.com because it is interpreted as a relative url, whereas the Facebook link is an absolute url since it has https://
To Fix This
use mailto:email#website.com instead of email#website.com for your email address.
The theme probably should wrote a href="mailto:{{email}}" in their template. But if they didn't, you should write mailto: yourself.
According to my experience, There is some additional script added in your wordpress file. try to remove header.php, footer.php one by one and see error comes or not. If error doesn't come then check your code in these files. I am sure there is some script added in any file.
Resave your permalink settings, that should sort it out, but information can only get appended to urls via the .access file, which is set in the permalinks section. I'd check that if I was you.

Wordpress Help: How to remove author and tags from P2 theme?

I have recently installed the P2 Theme on my site: http://news.nocamels.com/
and I want to know How to remove author and tags from P2 theme?
Thanks!
There is a step by step guide is given link here.
Make sure to read the comments below but this will get you sorted :
You should be able to find <span class="tags"> inside of <span class="meta"> and get_the_tags() in your loop.php file. I see that you have hidden it as #janw suggested. If you truly want to remove it, you will have to get rid of the calls in your PHP.

Resources