tpinkus
Forum Replies Created
-
Forum: Plugins
In reply to: [OG — Better Share on Social Media] Twitter Cards on FrontpageThat doesn’t work.
You can see here: http://kirq-f2.lor.vipology.com
As well as testing it here: https://cards-dev.twitter.com/validator
Forum: Plugins
In reply to: [OG — Better Share on Social Media] Twitter Cards on FrontpageHere is what worked for the Twitter Cards
/** Set Default Twitter Cards on Frontpage ****************************************************/ add_filter( 'og_array', 'my_twitter_foo_bar' ); function my_twitter_foo_bar( $og ) { if ( is_home() ) { $og['twitter']['card'] = 'summary_large_image'; $og['twitter']['title'] = esc_attr( get_bloginfo( 'title' ) ); $og['twitter']['description'] = 'Come checkout what you\'re missing here.'; $og['twitter']['image'] = theme_get_option( 'social_image_url' ); $og['twitter']['url'] = home_url(); } return $og; }The only problem I still have is not being able to pull the Site Description, so I hardcoded in a basic line. Wish I could get the site description to pull in.. thoughts?
Forum: Plugins
In reply to: [OG — Better Share on Social Media] Default Front Page imageThis is what I went with and it works flawlessly
/** Set Default OpenGraph Image on Frontpage ****************************************************/ add_filter('og_image_init', 'my_og_image_init'); function my_og_image_init($images) { if ( is_front_page() || is_home() ) { $images[] = theme_get_option( 'social_image_url' ); } return $images; }The “social_image_url” is a theme option I added to allow them to set the default image to whatever they want.
Forum: Plugins
In reply to: [OG — Better Share on Social Media] Twitter Cards on FrontpageWell, that worked, but not really. I run multisite wp so I can’t be hard coding the meta tags, they need to be relative to the site that is loading.
Forum: Plugins
In reply to: [OG — Better Share on Social Media] Default Front Page imageThis is the code for the filter I’m using
/** Set Default Open Graph Img to Logo on Frontpage ****************************************************/ add_filter('og_og_image_value', 'my_og_og_image_value'); function my_og_og_image_value($images) { if ( empty($images) ) { $images[] = 'https://grab.new.news.mydailystrip.com/wp-content/uploads/sites/3/korn_189002984-2.jpg'; } return $images; }And its not working. I don’t believe I’ve done anything wrong. Thoughts?
Here is the URL: http://kirq-f2.lor.vipology.com/
Forum: Plugins
In reply to: [OG — Better Share on Social Media] Default ImageBTW… I do realize you have information in the FAQ’s on how to do this for a single site install, but this would be to allow each individual site in a multisite install to do something similar.
Thanks.. just wanted to clarify, I did look 🙂
Forum: Plugins
In reply to: [Network Shared Media (deprecated/unsupported)] Site PermissionsWasanajones…
Thank you for the reply, but its a little confusing. So let me ask it in a different way;
If a user does not have Author or above access to a site, he/she can not see any images for that site. Is this correct?
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Wrong Days Events Showing@fulvio… thanks didn’t know that new setting was there.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Wrong Days Events Showing@fulvio… thanks didn’t know that new setting was there.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Wrong Days Events ShowingNick.. I’m sorry but this issue has never been resolved. Please advise.
Forum: Plugins
In reply to: [My YouTube Channel] Lightbox IssueTried that, but no go. Still linking to Youtube to play video.
Forum: Plugins
In reply to: [My YouTube Channel] Lightbox IssueDid that… didn’t help 🙁
Forum: Plugins
In reply to: [My YouTube Channel] Lightbox Issuefulltanq.com
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Wrong Days Events ShowingThese events are on specific times for the day.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Wrong Days Events ShowingNick any thoughts here? Need to get this resolved ASAP.
Thanks!!!