John Ward
Forum Replies Created
-
Forum: Plugins
In reply to: [Quiz Maker] How to dequeue from all pages except oneThat works. Thank you for the support!
I also noticed that I placed my original code in the wrong file. So it worked, but your code is much better because of the conditional logic.
- This reply was modified 11 months, 2 weeks ago by John Ward.
Forum: Plugins
In reply to: [Quiz Maker] How to dequeue from all pages except oneIs there no way to exclude quiz-maker-public.css from all other pages? I see the code in the plugin for the option you are showing. I could modify it, but I don’t want to change the plugin code that will break upon update.
if ( ! $quiz_exclude_general_css ) { wp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__) . 'css/quiz-maker-public.css', array(), $this->version, 'all'); }else { if ( ! is_front_page() ) { wp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__) . 'css/quiz-maker-public.css', array(), $this->version, 'all'); } }
That is why my original thought was to try to dequeue this file in the themes functions.php file.
Note: it also enqueues the mailerlite plugin CSS on all pages.Forum: Plugins
In reply to: [SyntaxHighlighter Evolved] freezing browser after update to wordpress 5.3Hey, thanks for commenting. I will give that suggestion a try. Also thanks for what you do for the WP community with your plugin.
Forum: Plugins
In reply to: [SyntaxHighlighter Evolved] freezing browser after update to wordpress 5.3I’ve done some debugging. The problem seems to be related to a combination of Autoptimize and syntax highlighter evolved. If I disable autoptimize then the syntax highlighter works.
Forum: Fixing WordPress
In reply to: How to enable XMLRPC in WP 4.3Add it to the bottom of your wp-config.php file
Forum: Fixing WordPress
In reply to: How to enable XMLRPC in WP 4.3Looks like this works:
add_filter( ‘xmlrpc_enabled’, ‘__return_true’ );Forum: Plugins
In reply to: [Crayon Syntax Highlighter] Moseover glitch with default Twenty Fifteen.crayon-main .crayon-table .crayon-nums seems like a better selector as it should apply to all themes.
Forum: Plugins
In reply to: [Crayon Syntax Highlighter] Moseover glitch with default Twenty FifteenWow, thanks. I didn’t have time to look into it since installing. I was just seeing if crayon would work better than the syntax highlighter I usually use. I’ll give that a shot.
Forum: Themes and Templates
In reply to: How to output the user's website linkSimply use <?php echo get_the_author_link(); ?> in your theme’s template.
Forum: Themes and Templates
In reply to: Integrating the admin bar to a custom themeThanks. You are correct that I was not including wp_footer. I didn’t get that far. It looks like wp_head will include the correct css which is why I saw the empty margin. wp_footer outputs the div element that contains the menu.
Is there anything about this in the codex, because I was having a hard time finding info about the admin bar.
Forum: Themes and Templates
In reply to: Integrating the admin bar to a custom themeWell awesomely spammy reply.
Anyway, I can use the default themes and the admin bar does show. I tried just copying the header code form twentyeleven and putting it into my theme but still no admin bar.
Forum: Fixing WordPress
In reply to: Site Not LoadingI’m trying reverse engineer the js. So far it is calling some .ru domain.
Looks like it is trying to inject links to some site:
cnblogs.com
detiknews.com
apple.com
ratemypart.ruTo name some.
Now I am finding several new index.php files that simply have a comment of:
//silence is goldenForum: Fixing WordPress
In reply to: Site Not LoadingBy the way this exploit occurred tonight at 7:13 on wordpress version 2.9.2
Forum: Fixing WordPress
In reply to: Site Not LoadingThe JS being injected starts with this:
<script>var i;if(i!=’Mp’){i=”};
and always ends with this comment
<!–ae3b69c5928c20d34d9fd994b1459c9c–>Forum: Fixing WordPress
In reply to: Site Not LoadingPretty sure I was compromised. The thing is that I am running 2.9.2 on one of the sites, but I have a few hundred that were on 2.8.4 and some that may have been running 2.7. I think one of the older ones was compromised then any files with 777 permissions were infected.