Category: Wordpress Snippets

  • Change Footer Branding in WordPress Admin Panel

    Change Footer Branding in WordPress Admin Panel

    [ad_1] If you are doing client work on a WordPress theme then it’s nice to put your brand in as many places as you can without affecting the design of the website. The WordPress dashboard footer is an ideal place to put your credential link. Copy the following snippet in your functions.php file to change…

  • Add Additional Contact Methods to User Profiles

    Add Additional Contact Methods to User Profiles

    [ad_1] By default WordPress allow authors to display some information about themselves, such as a website URL, email address, a short bio and their IM contacts, but it is missing important social media networks like Facebook, Twitter, linkedin and Google+. It’s good option to display social media profile page along with author bio because your…

  • Add Published Date & Last Modified Date in WordPress

    Add Published Date & Last Modified Date in WordPress

    [ad_1] Sometimes on a specific project, you have requirement to also display last modified date of pages and posts along with published date. So here is a code snippet to display both in your WordPress. Posted on <?php the_time( ‘F jS, Y’ ); ?> <?php // display last modified date $modified_time = get_the_time( ‘U’ );…

  • Change WordPress Logo on Login Page

    Change WordPress Logo on Login Page

    [ad_1] WordPress provides their own logo on user registration and login pages but sometimes it is required to replace that with your/client logo especially for branding purpose. You can easily change the default WordPress logo on the Login page with the help of admin_head WordPress action. Here is a simple code snippet that will allow…

  • Batch Delete Spam Comments With Specific URL

    Batch Delete Spam Comments With Specific URL

    [ad_1] Comment spammers are getting smarter and using latest techniques to fool anti-spam methods. It really does not matter which anti-spam plugins you use on WordPress, you must have noticed that these spam comments are bypassing your full proof system. Every now and then, you will receive bunch of spam comments on your website. If…

  • Change WordPress Post Autosave Settings

    Change WordPress Post Autosave Settings

    [ad_1] WordPress has a very useful feature which will automatically save your current draft every 30 seconds, as you type and you will not even notice. You can change the time interval settings on how often WordPress auto saves by adding a setting in the wp-config.php file. Let’s say you want to autosave drafts every…

  • Force Trailing Slash To Requested Urls

    Force Trailing Slash To Requested Urls

    [ad_1] Although its personal preference whether you prefer trailing slash at the end of your website URLs or not. But if same webpage content on your website is accessible with two different URLs, one with trailing slash and other without it, then search engines consider it as duplicate content and therefore penalize your website domain…

  • Prevent Browser Caching Image Files

    Prevent Browser Caching Image Files

    [ad_1] When you are developing a site, you have to refresh page lot of times and you start to get a pretty good feel for what your browser is going to pick up on a single refresh, and what it won’t. For example, I find that if I overwrite an image file on the server,…

  • Check If a WordPress User is Logged In

    Check If a WordPress User is Logged In

    [ad_1] Sometimes you want to show different content within WordPress based on whether a WordPress user is logged in or not. WordPress provides a simple way to perform this check with is_user_logged_in tag. It returns boolean true or false value and with the help of this tag, we can create unique messages for members, add…

  • Protect .svn Folders From Public Access

    Protect .svn Folders From Public Access

    [ad_1] If you use WordPress with Subversion (svn) then you will probably notice .svn (metadata) folders on your server. These folders are used by the Subversion client to keep track of changes and determine what files need to be updated when getting the latest versions. They also contain information about what SVN server you are…

PROMEX · YOUR ACCOUNT

Login / Register

Use your WhatsApp number. We’ll send you a code to sign in securely.

Your code expires in 5 minutes. Never share it with anyone.