WordPress functions file

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 »

How to: Add Graphic to PageLines Branding Section

Goal: Have a graphic in PageLines Branding section and have it aligned with the bottom of the site logo, as well as aligned flush-right. PageLines Framework v2.1.3 WordPress v 3.3.1 1. Turn off RSS/social media icons: WP admin -> PageLines -> Settings -> Header And Footer -> UNtick “Display the Blog RSS icon and link?” …

How to: Add Graphic to PageLines Branding Section 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 »

How to Add Featured Image Code to Inside Pages – WordPress Bunch theme

WordPress theme: Bunch Desired result: Have a Featured Image at the top of every inside Page. This will show how to add the Featured Image code to inside Pages, without ruining the other inside Pages that don’t have a Featured Image on them. Alter the following files: style.css, page.php and functions.php. 1. CSS FILE File: …

How to Add Featured Image Code to Inside Pages – WordPress Bunch theme Read More »

WordPress Child Theme – Add Horz Footer Menu

WordPress version: 3.1.3 Parent theme: TwentyTen 1.2 Add a horizontal footer menu to child theme (since Twenty Ten parent theme doesn’t have it as a default). Instructions from: Digging into WordPress – Using Menus in WordPress 3.0 In addition to the above instructions, add CSS and array controls from the main menu: File: footer.php (in …

WordPress Child Theme – Add Horz Footer Menu Read More »

WordPress Child Theme – Custom Sidebar on Home Page

Overview: We want an extra-wide custom sidebar just for the Home page. We also want the custom sidebar to have its own Widgets. We’ll create a Home page template, register new Widgets and add some new CSS for styling. Big thanks to DigitalRaindrops.net for their tutorials. Section 1 of 4: Template for the Home page Copy …

WordPress Child Theme – Custom Sidebar on Home Page 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 »

WordPress – Warning: Cannot modify header information – headers already sent [FIX]

Error message: Warning: Cannot modify header information – headers already sent by (output started at /home/content/25/7659925/html/wp-content/themes/corporattica/functions.php:147) in /home/content/25/7659925/html/wp-includes/pluggable.php on line 897 Solution: Remove ALL empty lines/white spaces in the functions.php. This worked for me when using the WordPress Corporattica theme Removed single white space that was in front of <php? on line 147 (IE: I …

WordPress – Warning: Cannot modify header information – headers already sent [FIX] Read More »

Scroll to Top