Blog Archives

Change From Placeholder Text With jQuery

Add this to footer.php before the closing </body>. <script language=”javascript” type=”text/javascript”>  document.getElementsByName(‘es_txt_email’)[0].placeholder=’yourname@email.com’; </script> Where es_txt_email is the name if the <input>. The above script was used to change the placeholder in the Email Subscribers & Newsletters plugin.

Posted in WordPress Tagged with:

Show A Field Only When All Checkboxes Are Selected In Contact Form 7

You might want to read this post on how to conditionally display fields in Contact Form 7 plugin with simple JavaScript first to get some context. Here we are trying to display a line of text when all checkboxes are

Posted in WordPress Tagged with:

PHP Include And Require Files In WordPress functions.php – The Right Way

/** * Include File In WordPress Theme’s Functions.php *   * @since 1.0 * @refer https://millionclues.com/wordpress-tips/php-include-and-require-wordpress/ */ include_once( dirname(__FILE__) . ‘/includes/simple-post-likes/post-like.php’);

Posted in WordPress Tagged with:

The Right Way To Load CSS On WordPress Login Pages

/** * Custom Login CSS * * @refer  https://millionclues.com/wordpress-tips/right-way-load-login-css-wordpress/ */ function mc_load_custom_login_css() {      wp_enqueue_style( ‘login-css’, get_template_directory_uri() . ‘/assets/css/login-page.css’ ); } add_filter( ‘login_enqueue_scripts’ , ‘mc_load_custom_login_css’ ); Or you can use the Custom Login Admin Front-end CSS Plugin.

Posted in WordPress Tagged with:

Make A Div Stick To Bottom Of Parent Div

Here is the HTML Markup <div class="parent">      <div class="child">     <?php echo "Hello"; ?>   </div>    </div> And the CSS .parent {   position: relative; }    .child {   position: absolute;   bottom: 0px; }

Posted in WordPress Tagged with: ,