Use this code in your custom .js file to add a .selected class to the parent of the selected radio button //add class .selected to the parent of the radio button checked in gravity forms. $(‘input:radio’).click(function() { $(‘input:radio[name=’+$(this).attr(‘name’)+’]’).parent().removeClass(‘selected’); $(this).parent().addClass(‘selected’); });
You can use this snippet to detect browser types in PHP and do what you want with them. You might have to moved everything outside of the function to get it to work sometimes. //get browser info function get_user_browser() { $u_agent = $_SERVER[‘HTTP_USER_AGENT’]; $ub = ”; if(preg_match(‘/MSIE/i’,$u_agent)) { $ub = “ie”; } elseif(preg_match(‘/Firefox/i’,$u_agent)) { $ub Read More…
Paste this code into your custom .js file to use a dropdown to navigate to different pages. // select dropdown for mobile $(“ul.accordion select”).change(function() { window.location = $(this).find(“option:selected”).val(); }); The Option in the Select dropdown looks like this: <option value=”/alabama-liens”>Alabama (41)</option> In this case when it is selected it will navigate to /alabama-liens in the Read More…
I ended up creating a simple plugin based on this tutorial: http://wp.smashingmagazine.com/2011/10/25/create-perfect-emails-wordpress-website/ Plus I had to create a page template for the password reset based on these 2 tutorials: http://www.sutanaryan.com/wordpress/how-to-create-custom-reset-or-forget-password-in-wordpress/ http://www.tutorialized.com/tutorial/Create-a-Wordpress-Custom-Password-Reset-Page-Template/76026
The default location for the apache error logs is /etc/httpd/logs/error_log You have to be the root user to check the log. use tail -f to view the most recent errors
I used this code to validate a specific unique code that you have to fill out in order to register on the taxlientrainer.com website. // UNIQUE code validation. Checks to see if a valid promo code was entered // 1 – Tie our validation function to the ‘gform_validation’ hook add_filter(‘gform_validation_3’, ‘validate_code’); function validate_code($validation_result) { Read More…
It seems like every once in a while I run into php memory problems. It all comes down to the php.ini file. If you just need to increase the file upload size for the WordPress backend you can modify the php5.ini file in the root folder where WordPress is installed, however if you are downloading Read More…
Mostly by following this tutorial http://webdesign.tutsplus.com/tutorials/complete-websites/create-a-parallax-scrolling-website-using-stellar-js/ I was able to create a parallax theme without any problems. However, I noticed the images were disappearing as I scrolled down. To fix it do this: Change the parameter hideDistantElements found in stellar.js. You need to change the 0 to a 1, effectively disabling it. The vertical offset parameter was Read More…
You can stop iOS and WindowsMobile from auto optimizing your font by using this code in your main css file, or your mobile css file. @media screen and (max-device-width: 480px) { html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } }