cmoral3s
Forum Replies Created
-
Forum: Plugins
In reply to: [Social Sharing Toolkit] Pinterest not displaying small iconI had the same problem in one site and I solved it unchecking “Load JavaScript in footer” in General Settings. No idea why it worked, but it did. Hope it helps.
Forum: Fixing WordPress
In reply to: Add HTML wrapper around widget contentAndrew, if you were refering to me, I’m having the same problem described:
add a wrapper div around just the widget content (not the title)
. I don’t see a reason to create a new thread for the same issue.
The solution suggested by alchymyth, https://wordpress.stackexchange.com/questions/74732/adding-a-div-to-wrap-widget-content-after-the-widget-title?rq=1 , works fine, but it has a problem: it fails to deal with default titles.
The solution involves this check:
if ( $params[0][ 'after_widget' ] == '</div></div>' && isset( $settings[ 'title' ] ) && empty( $settings[ 'title' ] ) ) $params[0][ 'before_widget' ] .= '<div class="content">';
And it works fine for some widgets. However, some widgets (like most of WP’s built-in ones) put a default title if nothing is set:
$title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Posts') : $instance['title'], $instance, $this->id_base);
And the check fails to deal with that default. Is there any way to get the “real” title of the widget to check for it?
Thanks
Forum: Fixing WordPress
In reply to: Add HTML wrapper around widget contentHi,
Maybe I didn’t understand the OP problem correctly, but it seemed like what I wanted to get: wrap a DIV around the widget’s content. The problem with the widget_text filter is that it only works for the text widget, not all types of widgets, and I’ll need it to work for all.
The solution suggested by alchymyth looks quite good, I will try it.
Thanks both of you.
Forum: Fixing WordPress
In reply to: Add HTML wrapper around widget contentadd_filter('widget_text', 'my_widget_content_wrap');
That filter is for the Text Widget only (the widget to display text/html) as it looks from here https://adambrown.info/p/wp_hooks/hook/widget_text so it doesn’t work ??
Isn’t there other way?
Forum: Plugins
In reply to: [Tools for Twitter] Not automatically downloading tweetsI don’t know if I have this problem or it’s a design decision…
TwitterTools/Social fetch my tweets correctly manually or automatically when I mark “Create blog posts from tweets”. However, I want my tweets to become a custom post type, and if I check “Create URLs for tweets” I get the same tweet twice: once as a “status” post and once as a custom post.
If I uncheck “create blog posts from tweets” I get them only as a custom post (as desired) but they are not fetched automatically. Any help?
Thanks
Forum: Plugins
In reply to: [Tools for Twitter] [Plugin: Twitter Tools] Change post titleHi Alex,
“2. implement support for status posts in your theme – you probably don’t want to show the title “
Should that be done using the filter you mention? There isn’t such option in the settings (or I can’t find it). I mean creating tweets as status post, not activating that post format.