Forum Replies Created
-
AuthorPosts
-
itzsniderParticipant
Would something like this work?
I assume I have to put this after the header
//* Customize the post meta function add_filter( 'genesis_after_header', 'genesis_post_meta' ); function genesis_post_meta($post_meta) { if ( !is_page() ) { $post_meta = '[post_categories before="Filed Under: "]'; return $post_meta; }}
And then I could style it?
Or is it as simple as saying
add_action( 'genesis_after_header', 'post_categories' )
?itzsniderParticipantThat works BUT technically it's still part of the entry-content when I need it pinned to the left side of the .full-width-content .content
Here is what it looks like now
How do I get it to be part of the full width content rather than the entry-content? Make sense?
If I do something like margin-left: -200px; it works but will that show properly on mobile as well?
itzsniderParticipantYep you would need to either replace them with icons in the CSS itself or remove it from CSS.
Not worth the headache of speed over three little icons.
itzsniderParticipantFOUND THE ISSUE!!!!
wp_enqueue_style( 'dashicons' );
Seems weird to me BUT something is obviously not correct in the implementation or execution.
I have disabled them and now I am 96/100 on Pingdom and Faster than 95% of all sites.. YIKES
itzsniderParticipantJust an update that is is happening only on inside pages, the main page doesn't see the file/error.
Still looking!
itzsniderParticipantGOT IT!
damn ;
itzsniderParticipantDid a html to php convertor and this is what I added
still crashes it!
<a class="opt-social_vertical-column_link google" href="https://plus.google.com/share" onclick="var sharerGp = \'https://plus.google.com/share?url=\'; window.open(sharerGp + location.href, \'sharerGp\', \'width=840,height=464\'); return false;">+1</a> <a class="opt-social_vertical-column_link reddit" href="http://www.reddit.com/submit" onclick="var sharerRd = \'http://www.reddit.com/submit?url=\'; window.open(sharerRd + location.href, \'sharerRd\', \'width=840,height=464\'); return false;">Submit</a>';
itzsniderParticipantWhat am I missing?
I am trying to add the rest of the code -
<a class="opt-social_vertical-column_link google" href="https://plus.google.com/share" onclick="var sharerGp = 'https://plus.google.com/share?url='; window.open(sharerGp + location.href, 'sharerGp', 'width=840,height=464'); return false;">+1</a> <a class="opt-social_vertical-column_link reddit" href="http://www.reddit.com/submit" onclick="var sharerRd = 'http://www.reddit.com/submit?url='; window.open(sharerRd + location.href, 'sharerRd', 'width=840,height=464'); return false;">Submit</a>
itzsniderParticipantOkay so after using Monarch, I have to say their support is awful.
I am debating on asking for a refund. It's just crap.
They have a plugin that gives them a "token" to login as a admin and the dummy broken my functions.php WITHOUT first asking if he could change my code.
This is what he wanted to add to my functions.php and it doesn't seem to have helped anyway......
This is really pissing me off, why can't things work.....
function _remove_script_version( $src ){ $parts = explode( '?ver', $src ); return $parts[0]; } add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); function my_meta_desc_filter( $desc ) { preg_replace( '/Shares FacebookTwitterGoogle\+Pinterest /', '', $desc); return $desc; } add_filter( 'wpseo_metadesc', 'my_meta_desc_filter' );
More to come as I have it.
itzsniderParticipantAnd I was told by a plugin developer he has only seen that on Genesis themes.
Either way that is not what I want. It should not read the names (facebook, twitter etc) of a plugin as content.
Stay tuned.
itzsniderParticipantI am not sure Sridhar honestly as this is a copy a friend gave me to test it out for a week.
I am purchasing Addthis Pro this evening, BUT it seems again that this has nothing to do with the plugins/code and everything to do with how Genesis reads it as part of the entry.
I have the code (above) to utilize a shortcode if I need to put it under the 1st paragraph, but it looks ugly is all...
Thanks all for weighing in, once I get addthis up and running I will let you know more!
itzsniderParticipantI am trying out several social plugins so that isn't the issue, its Genesis as a whole adding them into the entry itself, which is incorrect. So if you place at the start of an entry it shares incorrectly and considers them part of the post.
I am now moving on to Addthis Pro to see if they allow for more customized than what I currently have.
The link to what I currently am using is on the site.
Stay tuned.
itzsniderParticipantI got it working, BUT I can't figure out the correct shortcode!!!
function ads_added_above_last_p($text) { if( is_single() ) : $ads_text = '<div class="a" style="text-align: center;">[PUT SHORTCODE HERE]</div>'; if($pos1 = strpos($text, '<p>', strpos($text, '<p>') + 3)){ $text1 = substr($text, 0, $pos1); $text2 = substr($text, $pos1); $text = $text1 . $ads_text . $text2; } endif; return $text; } add_filter('the_content', 'ads_added_above_last_p');
itzsniderParticipantWonder if there is a way to move the icons to AFTER the first paragraph.
itzsniderParticipantAdding a new meta description to Yoast's plugin doesn't seem to work either... okay now to try and fix this some other way!
itzsniderParticipantSo I assume this is something that I cannot override with code in the plugin itself or the functions.php?
itzsniderParticipantIT is now working as I originally wanted with a little hacking, LOVE it!
Please mark this thread as resolved!!
Thanks Davinder!
itzsniderParticipantThanks a ton Davinder, I appreciate the help and super fast help!
Now i am off to make it look centered and prettier on mobile.
itzsniderParticipantOkay makes perfect sense!! Done and working as advised, how do I not load it for mobile devices?
AND could you help me center the logo over the Hamburger?
THANKS SOO MUCH FOR WHAT YOU HAVE DONE THUS FAR!!
itzsniderParticipantOkay now that works, BUT defeats the purpose of the original "feature".
Since my site relies heavily on images, I wanted the header to be "missing" on load so you see all of the image. NOw it's a white header above the image.
Is there a way to do both?
-
AuthorPosts