Search results

  1. jdunhin

    Ever need a fixed menu when scrolling down on the website.

    Ever need a fixed menu when scrolling down on the website. I have a bit of code that can work with you. Just quick thanks to Ruan Vermeulen*for helping me with the JavaScript. First create a Javascript file and insert this code: <em>You can give it a name like menu.js</em>...
  2. jdunhin

    Wordpress Author Position

    Hi All We are looking for a Wordpress Author on dunhin.co.za. Must know Wordpress and must write min 2 articles a day. When we get your submission then we can discuss what we going to pay you. You can apply on our contact form http://dunhin.co.za/contact-me Thanks
  3. jdunhin

    Wordpress Theme: child theme from a parent theme

    Ever wonder hoe to make a child theme from a parent theme? This make theme updating easy. So no more need to worry to mesh up the theme files. I made a child them from the theme BusyBee. Step 1: Create a folder in /wp-content/theme/name for folder Tip: You can put your own...
  4. jdunhin

    Add a style.css onto a php file

    Add a style.css onto a php file. <?php echo '<style type="text/css">'; include 'style.css'; echo '</style>'; ?>
  5. jdunhin

    Redirect HTTP to HTTPS - If your wordpress is on HTTPS

    If you have a Wordpress installation on https then you want the http to redirect to https. In your public_html (not in public_ssl) put this html file: Create "name.html" Insert this code and replace domain with website name. <meta http-equiv="Refresh" content="0;URL=https://domain.com" />...
  6. jdunhin

    Remove Jetpack smiley!

    Remove the Jetpack smiley without breaking the stats. Put this in your CSS file: img#wpstats { width:0px; height:0px; overflow:hidden; }
  7. jdunhin

    Remove Jetpack for users

    Hi I saw that Jetpack is available for all users. That is a no for me so I put a stop to this. Create a directory "wp-content/mu-plugins". More about "mu-plugins" Creat a PHP file with any name. But I created no-jetpack.php. Paste in this code: add_action( 'jetpack_admin_menu'...
  8. jdunhin

    Remove Admin Bar for all Users except for Administrators

    Paste the code in your themes function.php add_action('init', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } } Or remove it completely for all users show_admin_bar(false);
  9. jdunhin

    Replace WordPress Howdy with something else

    Hi, hope this little code help someone. I did not test it on all Wordpress Versions but it works on the latest one. function goodbye_howdy ( $wp_admin_bar ) { $avatar = get_avatar( get_current_user_id(), 16 ); if ( ! $wp_admin_bar->get_node( 'my-account' ) ) return...
  10. jdunhin

    Apache or nginx

    Apache or nginx? It sound like nginx is taking over on the servers. Is it really faster?
  11. jdunhin

    Hide entry-title on home page

    Simple tip for Wordpress beginners. How to hide the title on a Wordpress Home Page: CSS: .home .entry-title { display: none; }
  12. jdunhin

    Input field Javascript

    Show one fields value in another input text field. HTML: <input type="text" id="name" > <input type="text" id="name2" > Javascript: <script src="http://code.jquery.com/jquery-1.5.js" type="text/javascript"> <script type="text/javascript"> $(function(){ $("#name").change(function(){...
  13. jdunhin

    Create a php page-template

    Want to share some code that I used in my new Wordpress plugin. Maybe you can get something out of it. It is about creating a page-template.php and insert the necessary code in that page to make it one of the templates to use on a page. Create page: <?php $FileName = "example.php" ...
  14. jdunhin

    what do you think of WPMUDev

    I just renew my membership at WPMU Dev (http://premium.wpmudev.org/). But it is expensive! Do you have a positive or negative experience of them?
  15. jdunhin

    Wordpress Multisite Wildcard domains

    Do you also struggle with Hosting providers to setup Wildcard domains? Wildcard domains is for your Wordpress Multisite sub domains to show like this: name.dunhin.co.za. I do not like sub directories(dunhin.co.za/name).
  16. jdunhin

    Thethe-image-slider and WPML

    I found a solution for thethe-image-slider image slider to work with WPML translation. Edit thethe-image-slider.php replace $nPostID = get_the_ID(); with: //$nPostID = get_the_ID(); if(get_the_title()==$name){ $nPostID = get_the_ID(); } I think the same solution is...
  17. jdunhin

    Email marketer

    Email marketing still stay important. If you want to start you can use mailchimp with 1000 addresses for free. MadMiMi is my second choise but only 100 addresses free but good support. Remember if you have a Facebook page to setup a tab with a email sign up form.
  18. jdunhin

    Wordpress security Plugin

    I want to send out a warning for all of you that still have the "Hello Dolly" plugin installed on your Wordpress website. 2 of my sites on different server are getting hacked via that plugin. I am not a hacker expert but I have a plugin that help stop the hacking on my Wordpress sites. I use...
  19. jdunhin

    Widgetize your home page

    Put this code in your functions.php file <?php add_action( 'widgets_init', 'my_register_sidebars' ); function my_register_sidebars() { /* Register the 'homepage' sidebar. */ register_sidebar( array( 'id' => 'home', 'name' => __( 'home' ), 'description' => __( 'Widget on home page'...
  20. jdunhin

    CSS hover Box

    Hi Popupbox over a link. This is very cool and you can get creative! Sorry it feels like I am spamming the forum but I decided to share my notes on this forum... Code: css: /*************tooltip***************************/ .tooltip { cursor: hand; text-decoration: none !important...
Top