Tag: code snippet
Enable Formatting Tags for Content Limit in Genesis Featured Posts widget
Genesis Framework has same function that return the content after trimming and it strips all HTML The following code help you keep or filter some HTML tags when you are using Content Limit in Theme Settings or Widgets (e.g Genesis – Featured Posts widget) Add following to functions.php in the Genesis Framework child theme The…
Keep HTML Tags in WordPress Limit Posts – the_content_limit
This function, the_content_limit controls the maximum amount of characters displayed for an entry on the main page on WordPress homepage posts, e.g Featured Posts, Recent Posts However , the_content_limit stripped HTML tags just like the_excerpt. What if we want to keep HTML tags We make modification to the function, the_content_limit which is usually found in functions.php…
Change Default WordPress Logo Link from wordpress.org to Your Domain Name
When you open WordPress login page, the default logo links to WordPress.org. This is a quick tip for using your own link. Open the functions.php file. Then, add the following lines of code. And be sure to remember the PHP tag enclosure.
WordPress Limit Post
This function controls the maximum amount of characters displayed for an entry on the main page. If the set limit is surpassed, the text on the entry will be chopped to that amount of characters, otherwise the content will be showed unchanged. Add following code to functions.php in your theme folder usage : add this code inside…
PHP : Find Path to Base Directory
This script output the path to your base directory (aka “Document Root”), this code also useful to debug PATH in PHP errors This script output the path to your base directory with current working dir
Exclude Featured Posts from WPZOOM: Featured Category Widget
Zenko WPZOOM Demo Site (see the documentation) I made customization to the widget to exclude Same Posts already been shown on Featured Slider to avoid duplication 1. Open featured-category.php in wp-content/themes/zenko/functions/theme/widgets folder 2. Replace all code in featured-category.php with the following