add function to thematic hooks [closed]

Thanks for help i found the solution <?php /** * Page Template * * … * * @package Thematic * @subpackage Templates */ // calling the header.php get_header(); // action hook for placing content above #container thematic_abovecontainer(); ?> <div id=”container”> <?php // action hook for placing content above #content thematic_abovecontent(); // filter for manipulating the … Read more

How to modify files inside wp-includes directory in wordpress

I wouldn’t recommending any core files. Instead, you can filter the title and make your changes, like so: add_filter( ‘document_title_parts’, function( $title ) ) { // $title is an array of parts if ( strlen( $title[‘title’] ) > 10 ) { $title[‘title’] = substr( $title[‘title’], 0, 5 ); // Show only first 5 characters } … Read more

Can’t remove DIV from hooks in Storefront child theme [closed]

Storefront version 3.0: Code of the header.php in version 3.0 <header id=”masthead” class=”site-header” role=”banner” style=”<?php storefront_header_styles(); ?>”> <?php /** * Functions hooked into storefront_header action * * @hooked storefront_header_container – 0 * @hooked storefront_skip_links – 5 * @hooked storefront_social_icons – 10 * @hooked storefront_site_branding – 20 * @hooked storefront_secondary_navigation – 30 * @hooked storefront_product_search – … Read more

How do I remove a customiser option from a parent theme in a child theme?

From the documentation: To add, remove, or modify any Customizer object, and to access the Customizer Manager, use the customize_register hook: function themeslug_customize_register( $wp_customize ) { // Do stuff with $wp_customize, the WP_Customize_Manager object. } add_action( ‘customize_register’, ‘themeslug_customize_register’ ); The Customizer Manager provides add_, get_, and remove_ methods for each Customizer object type; each works … Read more

Override Dokan Includes File in Child Theme

Child themes let you override templates, but these are not templates you’re attempting to override. You can’t drop in arbitrary files and override the parent theme, and WordPress can’t do it’s magic when include or require are used to load files. The reason this works for templates, is because WordPress doesn’t load them with include, … Read more

Custom Background by Page IDs

The CSS is generated on the file inc/custom-css.php, the background color is set on line 76: $background = sanitize_hex_color_no_hash( get_theme_mod( ‘background_color’ ) ); So you can take advantage of the theme_mod_{$name} filter, which changes the value of the get_theme_mod($name) function, by adding this to your functions.php file: add_filter( ‘theme_mod_background_color’, function( $value ) { $custom_bg_page_ids = … Read more

Correct Way To Make Changes To A WordPress Theme

If you’re not the author of the parent theme, then it is better to create a child theme which overwrites the changes in the parent theme. With a child theme, you can do more than just additional CSS, you can modify template layouts and add custom functions.