Functions file

Divi – Making Blog Module Images Match Featured Image Ratios

Divi‘s Blog Module only displays images in landscape-ratio. This cuts off at the top & bottom of my Post’s portrait-ratio Featured Images. Here’s how Elegant Themes Divi tech support solved this issue. This code goes in the Child Theme’s functions.php file, and allows Divi’s Blog Module to display my Featured Images at their true ratio. …

Divi – Making Blog Module Images Match Featured Image Ratios Read More »

PHP in WordPress Text Widget

Allow PHP in WordPress Text Widget. No plugin, functions file solution. Add the following code to functions.php in child theme folder: [code]add_filter(‘widget_text’, ‘php_text’, 99); function php_text($text) { if (strpos($text, ‘<‘ . ‘?’) !== false) { ob_start(); eval(‘?’ . ‘>’ . $text); $text = ob_get_contents(); ob_end_clean(); } return $text; }[/code] Source: PHP Text Widget — Allow …

PHP in WordPress Text Widget Read More »

WP Twenty Eleven – Add Responsive Image Rotator to Header

Goal: Rotating images, in WP Twenty Eleven’s child theme header, that are also “responsive” (they shrink to different device sizes): WP Rotator plugin (to add rotating images) Flex Slider for WP Rotator plugin (to make the rotating images “responsive”) – Turns WP Rotator into a fully “responsive” jQuery slider – MUST have WP Rotator installed …

WP Twenty Eleven – Add Responsive Image Rotator to Header Read More »

How To: Add Featured Image to WordPress PlatformPro Theme

Goal: Add Featured Image to PlatformPro theme to use The Cart Press: List products in your home page in grid format WordPress: v3.2.1 Parent theme: PlatformPro, v1.5.2 Child Theme: PlatformBase, v1.4.1 Shopping Cart: The Cart Press, v1.1.3 File: root > wp-content > themes > platformbase > functions.php Add to the end of the file: // …

How To: Add Featured Image to WordPress PlatformPro Theme Read More »

WordPress Child Theme – Change Header Image Size

WordPress Child Theme Case Study: 2020 Euro Lens Bath Create a Child Theme (style.css and functions.php files) In the functions.php file, add: [php]<?php /** Tell WordPress to run child_theme_setup() when the ‘after_setup_theme’ hook is run. Help from: http://digitalraindrops.net/2010/08/the-second-menu/ */ add_action( ‘after_setup_theme’, ‘child_theme_setup’ ); /** This function will hold our new calls and overrides. Help from: …

WordPress Child Theme – Change Header Image Size Read More »

Scroll to Top