Questions tagged [child-theme]

Child theming is a safe way to modify a theme. A child theme inherits a "parent themes" styles and then can selectively override. This alternative to "destructive" editing allows for safe updating of the parent theme and provides an easy way to undo theme changes.

Filter by
Sorted by
Tagged with
0
votes
3answers
24 views

Enqueue custom css file on specific page

So I've been messing with this for a while now and I don't understand how I'm unable to pull in my style file properly by registering and calling it at all. Here is my method: public static function ...
0
votes
0answers
14 views

Target the content-entry hook using Genesis Framework

So the below code is my custom template that I'm using to hook into a genesis child theme, but I'm unable to get the styling to show up in the right position. Here is the code: <?php get_header();...
0
votes
1answer
30 views

Use custom template on custom post type

So I'm kinda stuck on something that I'm trying to achieve and unsure how to even target it, so below I will explain all that I have and what I have tried. So I'm using the Genesis Framework and a ...
0
votes
2answers
28 views

Custom Background by Page IDs

I use TwentyTwent theme and want to change its background colour by page IDs. I'm not sure but when I check the functions.php, I see below lines which are related to background colours: // ...
0
votes
1answer
34 views

How can I override a require() used in functions.php of parent theme to my child theme

I have created a child theme for a Theme, Every thing works fine, except there are some files being required in functions.php of parent theme which I want to override it from the child theme. They ...
0
votes
1answer
22 views

Genesis Child Theme - Customize body

So I created a custom post type and I've also created a custom page called page-profile.php that follows the WordPress templating. Here is the code inside page-profile.php: <?php $args = array( ...
0
votes
2answers
23 views

How to display home page last modified date in anywhere of wordpress theme?

i just display my recent published and modified posts in homepage (index.php). how can i display last modified date of my home page?
1
vote
1answer
17 views

Avoid loading css from parent theme

In a parent theme (Foodica Pro) functions.php I have function foodica_scripts(), where css and js are loaded in page header, including: wp_enqueue_style( 'media-queries', get_template_directory_uri() ...
0
votes
0answers
16 views

Converting fopen/fwrite to WP_Filesystem

I'm using code from the Easy Theme Child plugin in my theme, but it fails the Theme Check plugin with the following error: WARNING: fopen/fwrite was found in the file grtsth-easy-child-theme-...
0
votes
0answers
19 views

setInterval is not working in child js file

I am trying to use setInterval() into a script.js in a child theme. that was added in the functions.php child, any console.log() is working so the file is well linked. this is how I am using the ...
1
vote
2answers
36 views

Child theme style.css versioning

I've been breaking my head on this one. I have a child theme and made changes to the style.css document. These changes did not show up in the reload of the page because there is no mention of version ...
0
votes
0answers
18 views

How to work with a custom theme that someone else created before me? (details below)

A company hired me as a web designer. Their website was designed by a private company that created the WP website from scratch: they customized a theme, installed all the plugins needed back then, and ...
0
votes
2answers
20 views

Downloading customized theme from wordpress

I activated wordpress theme twenty twenty and make some changes in it like background color , change default contents and landing pages etc . Can I export this modified theme and import in another ...
0
votes
1answer
132 views

Wordpress core jquery version file not loaded?

I try to put a simple <textarea> with an emoji picker (https://github.com/mervick/emojionearea) in my wordpress site (with buddypress installed, actually I put this in buddypress messages). The ...
0
votes
1answer
12 views

Add back in child theme what the parent theme removed with remove_action

My parent theme removes the emoji fallback script that makes emoji show up as images: // parent theme's functions.php remove_action('wp_head', 'print_emoji_detection_script', 7); remove_action('...
0
votes
0answers
13 views

Best practice when a theme already has a parent theme (so can't create child theme)

I've recently purchased a theme which is already has a parent theme as part of the installation (which means I can't create a child theme myself). I understand that it's best practice to create a ...
0
votes
0answers
13 views

“Cannot modify header information - headers already sent by” while using get_stylesheet_directory_uri()

I have a very strange problem while trying to include a custom file to my child theme. if I try to use get_stylesheet_directory_uri() along with require it crashes the website. if I try to var_dump(...
0
votes
1answer
24 views

Do I need to create a child theme for JointsWP

I have decided to try o move away from buying bloated premade themes and build my own from scratch. I am planning to use JointsWP along with Elementor Pro page builder. When I install a bough theme, ...
0
votes
1answer
29 views

Override plugin images so that they are not removed when the plugin is updated

Is it possible? It's the x in this page. the one for removing the composizioni corali filter. It is in plugins/woocommerce-products-filter/img/ with the name delete.png https://www.digitalmnemes.it/...
0
votes
0answers
39 views

AJAX numerical pagination problem in TwentyFifteen-child theme

I want to create a Ajax Numeric Pagination. And found code in a website. And it's work perfectly in first click event, but in second click it doesn't. And clear example is if I click in pagination ...
0
votes
1answer
14 views

Copy files from main to child theme (after designing website)

Have a new website and want to install Google Tag Manager (GTM). The GTM code requires a (second) tag. According to this site (https://www.wpexplorer.com/google-tag-manager-wordpress/) you can copy ...
1
vote
0answers
14 views

GET parent theme throws 500 error in console, site works fine

I have a storefront site with a storefront-child theme. Everything works fine except I have an annoying 500 in the console. GET https://fubar.net/wp-content/themes/storefront/?ver=5.3 net::...
0
votes
1answer
68 views

Override Dokan Includes File in Child Theme

I'm trying to override this Dokan plugin file in a child theme: wp-content/plugins/dokan-pro/includes/modules/vendor-verification/templates/verification-new.php I can successfully override files in ...
0
votes
0answers
18 views

What is Wordpress methodology for using Composer-installed packages?

I just set up a composer.json for my site and added a MailChimp package by executing from my root directory composer require thinkshout/mailchimp-api-php The composer.json at root level is now: { ...
0
votes
0answers
23 views

Editor Sidebar CheckBox Function

EDIT: I am looking for an example function to put a checkbox in the sidebar of the editor. I prefer to copy/paste without needing to learn Java-Script first. See below for more details. The Problem ...
0
votes
0answers
16 views

child theme result in blocked subnets

I've created a custom child theme. after activating the child theme, sucuri firewall plugin blocks continuously access to child themes style.css for each visitor which ends after some hits in banned ...
0
votes
1answer
24 views

CSS Styling a specific page

I am familiar with styling specific pages on WordPress by adding a class .page-id-123 in front of the styled element. However, this doesn't seem to apply to "subpages" (sorry don't know what they ...
0
votes
1answer
31 views

Can't switch to a child theme using filters template, option_template and option_stylesheet

In order to dynamically switch a theme in functions file (e.g. when wanting a different theme for a different domain, but same website), you use the following: add_filter('template', '...
0
votes
0answers
26 views

Plugin function in child theme

I need to customize a message returned from a plugin function using my child theme. In the plugin: if ( ! class_exists( 'my_class' ) ) { class my_class { if ( ! is_admin() || ( defined( '...
0
votes
0answers
11 views

Wordpress child theme not responsive on mobile screen using Bootstrap 4x

I've created a child theme and also enqueued Bootstrap 4.3 in it. The site works fine on desktop screen however when I reduce the screen size, the list-group and cols are not stacking up, instead, ...
0
votes
0answers
14 views

How to edit hero-section entry-title for Genesis child theme 404 page

I'm using Genesis >> Business Pro child theme. I've created a custom 404 page in my child theme. I've gotten everything to work EXCEPT... I need to change the title of the page, depicted in the ...
0
votes
0answers
19 views

How to stop customizer settings inheritance from parent to child theme?

Whenever I change customizer settings, it gets applied to current parent theme AND child theme. If I change customizer settings on child theme, and then switch back to parent theme, the customizer ...
0
votes
1answer
14 views

Pseudo class :before don't working in a specific button

Currently, i'm building an ecommerce and a small button was running with pseudo class :before suddenly stopped working.The site run WP with Divi and Woocomerce. I wish the bellow code back to run: ....
0
votes
0answers
15 views

Child Theme Aaron Customizer

I created a child theme Aaron and wanted under advance settings-> “check this box to hide the clickable site title in the header menu” to always be default checked. How do I modify this on the child ...
0
votes
1answer
75 views

How to add javascript code into Divi child theme?

I want to add this JavaScript code into my Divi child theme. I have made a directory for the js file inside the Divi child theme folder. The name of the js file is "selectpage.js". <script type="...
0
votes
1answer
18 views

How do I bring a page template into a new theme with separate styling?

I currently have a page template that I have striped of all major styling within a theme (twentyninteen-child). I have a new child theme (event), that this page/template will sit under and am having ...
0
votes
1answer
14 views

Crazy redirect happening with no redirects set up

I have a website https://createandgo.com If you hover over 'Design' in the top menu, then click 'How To Write A Blog Post' it adds like 21 URL extensions: https://createandgo.com/blog-writing-tips/-...
1
vote
0answers
21 views

Wordpress Bootstrap Problem

I'm having a problem with my theme's compatibility with bootstrap. So the checkboxes on my website appear double (). So I enqueued the latest Bootstrap CDN (CSS and Scripts) on my child theme and ...
0
votes
0answers
16 views

How to override/call the custom Taxonomy template in Child theme

We have custom Taxonomy template in Parent Theme, we want to override that template in child theme. ex. taxonomy-ad_cats.php Where to keep the custom Taxonomy template in the child theme and how to ...
1
vote
0answers
33 views

Add other social networks to TwentyNineteen_SVG_Icons class in child theme?

I'm trying to add items to the $social_icons_map and $social_icons arrays in class-twentynineteen-svg-icons.php I know I need to do it in the functions.php file of my child theme. I think I need to ...
0
votes
0answers
12 views

How to preserve changes in templates and other files

I've downloaded a theme and then changed some css styles, and also php templates etc. Then I've realized, that when I will have to update the theme I'll probably lose all my changes. Is this kind of ...
0
votes
1answer
27 views

trying to add extra field using hooks

I am trying to add an extra field on the backend menu of Edit Subscription menu (SUMO Subscription (plugin) -> List of Subscription -> Edit Subscription) I am sending you a screenshot for where ...
0
votes
1answer
13 views

How can error pages be customized

Googling this comes up only with information about customizing 404 pages of course, I can't seem to find a way to customize this: I'm using a plugin that allows users to submit stuff in the frontend, ...
0
votes
1answer
315 views

Add custom SVG icons to Social Icon MENU in WordPress Twenty Seventeen Child Theme

I'm having trouble adding custom SVG icons to the Social Icon Menu in WordPress Twentyseventeen Child Theme.The menu works fine with all pre-packaged SVGs included with the theme, but I can't add ...
0
votes
0answers
20 views

Wordpress download of custom CSV file blank

I have a Javascript download function that provides the download of a CSV file from a custom table of a specific page that is private. The function works perfectly, if the user is logged as an Admin,...
0
votes
1answer
26 views

How to change the structure/order of sections in a Wordpress theme? [closed]

I am using a Wordpress theme called "business-one-page", here is a link to the demo of the theme: Buisness-One-Page. I am trying to change the structure of the sections. This is a one page theme so ...
0
votes
2answers
26 views

How does a Genesis child theme understand that the Genesis theme is the parent theme?

In most Genesis child themes, the following line of code exists: // Starts the engine. require_once get_template_directory() . '/lib/init.php'; I understand that this includes the init.php file from ...
1
vote
1answer
26 views

Mobile issue – website isn't properly detecting screen size [closed]

my question concerns this website (currently on my staging server): https://sunstonebookkeeping.markhannondesign.com The theme is a child theme of a parent theme I created with Underscores and ...
0
votes
1answer
25 views

How to edit button permalink inside function.php using a child theme?

I am using a WordPress theme called "business one page" and it has a slider with Learn-more button. Here is a demo of the theme Business-One-Page I am using a child theme and I want to change the ...
0
votes
1answer
26 views

Creating a child theme: How do I find the template name of the parent directory?

I am trying to create a child theme for the Fitness Hub theme. I'm following this guide (https://developer.wordpress.org/themes/advanced-topics/child-themes/), when it comes to part 2. it makes it ...