Matt
Forum Replies Created
-
Forum: Plugins
In reply to: [Coming Soon Page & Maintenance Mode] going liveHave you made sure that you have logged out of WordPress? You won’t see the coming soon page if you are logged in.
I know the default settings can be found in the class-qmn-quiz-creator.php file. I’ve narrowed it down to the code below:
class QMNQuizCreator { public function create_quiz($quiz_name) { $results = $wpdb->insert( $wpdb->prefix . "mlw_quizzes", array( 'message_before' => 'You may start the %QUIZ_NAME quiz now.', 'require_log_in' => 1, 'total_user_tries' => 1, 'loggedin_user_contact' => 1, 'message_after' => 'You have completed the quiz. Please return <a href="#">home</a> to start your next lesson.' ) ); } }
How can I edit that within functions.php or another method without overwriting the core plugin file?
Forum: Plugins
In reply to: [Smart Passworded Pages] Widget versionRobvgr,
I too was looking for a way to do accomplish what you’re doing. It seems that the plugin developer wrote up the wrong shortcode for running it properly. You’ll need to remove any backslashes ( \ ) from the shortcode. Your code would actually be:[smartpwpages parent="121"]
This allows it to run anywhere on the site. Hope this helps.
Matt
Forum: Fixing WordPress
In reply to: Add Active Class to Active WordPress Navigation Link@wpfan1000
The .current-menu-item is only applied to navigation menus that use<li>
. I was trying to build an HTML5 navigation using<nav>
and<a>
instead of<ul>
and<li>
. How can I get the .current-menu-item class applied to the<a>
in my menu?This is what my menu output looks like:
<nav> <a href="/about">About</a> <a href="/contact">Contact</a> </nav>
When I’m on /about I want .current-menu-item applied as a CSS class.