Angel Costa
Forum Replies Created
-
Forum: Plugins
In reply to: [wpMandrill] Associating site with sub-accountSorry I’m late, fellas.
function addSubaccount($message) { $message['subaccount'] = "netmundo"; $message['tracking_domain'] = "email.netmundo.com.br"; $message['signing_domain'] = "netmundo.com.br"; $message['return_path_domain'] = "email.netmundo.com.br"; return $message; } add_filter('mandrill_payload', 'addSubaccount');
You can delete the options you do not need. Just add this to your functions.php and you’re good to go.
Forum: Plugins
In reply to: [Sharify Social Share Buttons] Google counter not workingFound it on stack overflow, i think:
$html = file_get_contents( "https://plusone.google.com/_/+1/fastbutton?url=".urlencode($url)); $doc = new DOMDocument(); $doc->loadHTML($html); $counter=$doc->getElementById('aggregateCount'); return $counter->nodeValue;
Forum: Plugins
In reply to: [Sharify Social Share Buttons] Google counter not workingBecause I am using another function to pull the count.
Forum: Plugins
In reply to: [wpMandrill] Only working for some emails.I deactivated Clicky and activated again. Mandrill seems to be working now. Weird.
Forum: Plugins
In reply to: [wpMandrill] Only working for some emails.I wonder if the clicky version (by the same plugin author – Yoast) is what is causing the same issue in my wp.
Forum: Plugins
In reply to: [SEO Smart Links] What happened to import?Not that csv one, that import trough URL. I had all my affiliate links in a YOURLS database, then I exported them through a txt file which was read by your plugin.
It is a perfect setup for autolinking affiliates.
But I downngraded back to 2.78 and I’m all good now.
Forum: Themes and Templates
In reply to: [Hueman] Can I swap the position of the sidebars?Forum: Themes and Templates
In reply to: [Hueman] Can I swap the position of the sidebars?Thanks for this ??
Forum: Plugins
In reply to: [WP-PostViews] Thumbnail in WidgetYou can do it by editing the plugin code. Look for wp-postviews/wp-postviews.php and search for the function you’ll be using in your widget.
In my case I am using most viewed pages/post. So I scrolled down and find:
### Function: Display Most Viewed Page/Post
Then you look for the last $temp line (within that function):
$temp = str_replace("%POST_TIME%", get_the_time(get_option('time_format'), $post), $temp);
And you add this right below:
$temp = str_replace("%POST_IMG%", get_the_post_thumbnail(), $temp);
Now, get back to the template and set it using %POST_IMG% wherever you want the image to appear:
<li>%POST_IMG%<br /><a href="%POST_URL%" title="%POST_TITLE%">%POST_TITLE%</a></li>
Remember to have a fallback image: https://justintadlock.com/archives/2012/07/05/how-to-define-a-default-post-thumbnail
This is actually pretty simple and could come with the plugin.
Forum: Plugins
In reply to: [Font Awesome More Icons] Nav MenuProbably.
Forum: Plugins
In reply to: [Font Awesome More Icons] Nav MenuMaybe you need to set the color right in your css.
It’s still an <i> tag.
Forum: Plugins
In reply to: [Font Awesome More Icons] Nav Menujust put <i class=”icon-wordpress”></i> in front of the title of the link.
Example: Home
<i class=”icon-home”></i> HomeWorked for me.
Forum: Plugins
In reply to: [SEO Smart Links] Loading custom keywords from a URLI actually created a php file that outputs something like this and nothing else:
keyword, keyword2, keyword3, https://somelink.com
keyword, keyword2, keyword3, https://somelink.com
keyword, keyword2, keyword3, https://somelink.comAdd the url that contains to that field in SEO Smart links settings.
My list is generated from a customized Yourls (shortener) setup that only contains affiliate links.
Forum: Plugins
In reply to: [Yoast SEO] bbPress Breadcrumbs ConflictThe thing is Yoast built his plugin so it would remove bbpress’ breadcrumbs if you activate wordpress seo’s breadcrumbs.
To remove the conflict go to wp-content/plugins/wordpress-seo/frontend/class-breadcrumbs.php and comment out:
//add_filter( 'bbp_get_breadcrumb', '__return_false' );
It works, but if you update the plugin you need to edit the file again.
Forum: Plugins
In reply to: [W3 Total Cache] Use a Content Delivery Network (CDN)Yeah, I know, that’s why I use the code above.