tech.brandonjp.com

    • About Me
    • Custom WordPress Snippets for Code Snippets Pro
    • Wordpress Plugins
  • Block Editor: Show Gutenberg Context Menus on Right Click

    Block Editor: Show Gutenberg Context Menus on Right Click

    January 24, 2023

    by

    tech.brandonjp.com

    When using the WordPress Gutenberg block editor, it’d sure be nice to right-click on an element in the outline and instantly see the context menu. This snippet makes it possible.

    Read More →

  • Post Content: Replace & Wrap Specific Keywords in Custom Link

    Post Content: Replace & Wrap Specific Keywords in Custom Link

    January 24, 2023

    by

    tech.brandonjp.com

    If you often type certain text and want it to always link to the same place everytime it appears on your site, this can help. You provide a key=>value pair in the array here: And anytime a post is viewed, the script will search for the text on the left and wrap it in a…

    Read More →

  • Code Snippets Pro: Set Custom Default Options for Serialized WP Settings

    Code Snippets Pro: Set Custom Default Options for Serialized WP Settings

    January 23, 2023

    by

    tech.brandonjp.com

    Read More →

  • Analytics: Add Microsoft Clarity in wp_head on WordPress Production sites

    January 23, 2023

    by

    tech.brandonjp.com

    This adds your Microsoft Clarity Analytics ID to the head of your public-facing WordPress pages (not your admin pages) and only for users who aren’t logged-in. Replace the XXXXXXXXX with your ID and you’re good to go. By default, it assumes you want to add the script. However, if you’re using my Env555 script, it…

    Read More →

  • Analytics: Add Facebook Meta Pixel in wp_head on WordPress Production sites

    January 23, 2023

    by

    tech.brandonjp.com

    This adds your Facebook/Meta Pixel Analytics ID to the head of your public-facing WordPress pages (not your admin pages) and only for users who aren’t logged-in. Replace the XXXXXXXXX with your ID and you’re good to go. By default, it assumes you want to add the script. However, if you’re using my Env555 script, it…

    Read More →

  • Analytics: Add Google Analytics gtag.js in wp_head on WordPress Production sites

    January 23, 2023

    by

    tech.brandonjp.com

    This adds your Google Analytics ID to the head of your public-facing WordPress pages (not your admin pages) and only for users who aren’t logged-in. Replace the XXXXXXXXX with your ID and you’re good to go. By default, it assumes you want to add the script. However, if you’re using my Env555 script, it will…

    Read More →

  • Add ‘Navigation Menus’ to Appearance Menu item back to WordPress admin

    Add ‘Navigation Menus’ to Appearance Menu item back to WordPress admin

    January 23, 2023

    by

    tech.brandonjp.com

    Add an old school ‘Manage Menus’ link under the Appearance admin menu, so you can easily rename or delete menus (but you can’t really edit them otherwise). Before ➡️ After

    Read More →

  • Force select2 inputs to auto-focus when clicked

    January 23, 2023

    by

    tech.brandonjp.com

    I have a lot of admin pages where an input (often inside a custom field metabox) is using a select2 dropdown. On some pages, I’ll notice that when I click on the input, it doesn’t automatically focus the text input so that I can start typing, which is usually what I want. So this adds…

    Read More →

  • Add back button to admin headings on WordPress Admin pages

    Add back button to admin headings on WordPress Admin pages

    January 23, 2023

    by

    tech.brandonjp.com

    Sometimes I’m on an admin screen and I just wanna go back to the parent screen. For example, I’m editing a single post and I wanna go back to the All Posts screen. In that example, it’s easy. But for others, I don’t like futzing around to find the correct menu item. So this script…

    Read More →

  • Display Post Images & Attachments on Edit Screen

    Display Post Images & Attachments on Edit Screen

    January 22, 2023

    by

    tech.brandonjp.com

    When I’m editing a post with several images or media files attached, I sometimes like to see all the attachments on the post edit screen rather than visiting the Media Library. This snippet adds a metabox that displays a list of the attachments with links to the Edit Media admin page for each. It works…

    Read More →

1 2
Next Page

Hi. I’ve got TONS of code snippets. Just looking for time to post them. If you find them helpful (or want to encourage me to finish this site 😏) => Send a Tip!

About Me →

© 2022 Your Company LLC · Bright Mode Theme by Brian Gardner

Twitter · Instagram · LinkedIn