How to find a file in WordPress themes [closed]

Open your Linten WordPress theme in a text editor or IDE then open inc/hook/custom.php file, inc and hook is directory/folder. Then find this function linten_footer_copyright and do whatever you want to do. Here’s the file link from WP theme repo – https://themes.trac.wordpress.org/browser/linten/1.0.6/inc/hook/custom.php#L112 How I found the right file Let me explain how I found your … Read more

Theme Development Admin Area [closed]

You’re not supposed to modify the Dashboard. It’s recommended to create custom post types for content organisation and a top-level feature plugin for more complex options and settings. You can also use the Customizer to allow theme changes. A theme might already have these settings, so you could add some meta boxes with general help … Read more

Sage WordPress – Plugin Namespace: Not Found

You must specify in the roots sage theme composer.json the runtime where autoload can find the classes. “autoload”: { “psr-4”: { “App\\”: “app/”, “App\\Blocks\\”: “app/Blocks/”, “Itineris\\AcfGutenblocks\\”: “../../plugins/acf-gutenblocks/src/”, } } Don’t forget to run composer dump-autoload

Dequeue a style file which is making website load slow!

function wp_dequeue_kirki_style() { wp_dequeue_style(‘kirki-styles’); } add_action(‘wp_enqueue_scripts’, ‘wp_dequeue_kirki_style’); Please make sure that you have handler name kirki-styles in the parent theme for the css file that you want to remove. Because wp_dequeue_style function used handler as parameter. You can check documentaion of dequeue function here => https://developer.wordpress.org/reference/functions/wp_dequeue_style/

add_meta_box (Will display only in specific page admin WordPress)

/* Add meta boxs for particular pages */ function meta_set_particular_page() { $post_id = $_GET[‘post’] ? $_GET[‘post’] : $_POST[‘post_ID’]; $current_page_title = get_the_title($post_id); if ($current_page_title == ‘home’) { add_meta_box(‘Home_page’, ‘Home Name:’, ‘only_home’, ‘page’, ‘side’, ‘core’); } if($current_page_title == ‘about’){ add_meta_box(‘About_page’, ‘About Name:’, ‘only_about’, ‘page’, ‘side’, ‘core’); } } add_action(‘add_meta_boxes’, ‘meta_set_particular_page’); /* Add custom meta box for home … Read more