Questions tagged [child-theming]

80 questions
0
votes
0 answers

Cached version of child theme css loading after updated css file?

I'm building a wp child theme of ThemeGrill's ColorMag. When I load the page, my child theme css file is loaded, but there is also a file called style.css?ver=5.3.2 loaded after it. When I look at the code under elements in the dev tools, it appears…
0
votes
0 answers

Is there a way to use a class in functions.php of child theme that has already been instantiated in the parent theme functions.php?

I have a class in a file of a theme, this file is required in the functions.php. If I try to require it in the child theme functions.php I have this error: Fatal error: Cannot declare class Martfury_WooCommerce, because the name is already in use…
lucas.mdiniz
  • 95
  • 1
  • 7
0
votes
1 answer

Moodle Moove Child Theme

I am trying to make a child theme for 'Moove' in moodle 3.6! But as soon as I update my database and click on theme selector button, I get an HTTP 500 error! I follow the instruction from the blog below, but apparently, I am doing something wrong.…
lexicomane
  • 11
  • 3
0
votes
2 answers

get_template_directory_uri() suddenly started returning the wrong value

Out of nowhere on my site, the function get_template_directory_uri() has started returning the completely wrong value when using my child theme. It was all working just a moment ago, with the child theme and everything. Then all of a sudden it…
chrispytoes
  • 1,714
  • 1
  • 20
  • 53
0
votes
1 answer

Why can''t I see my custom template when creating new page?

I am just starting with getting to understand WordPress templates. I have made a very simple template called "attribute_information_popup.php" and put in the folder "page_templates" in my child theme.
steecp
  • 13
  • 4
0
votes
1 answer

Unable to create a Wordpress child theme

So I'm trying to create a child theme called premierpas from the wordpress theme "fullscreen-agency". I create the premierpas folder in the themes, then I added a css file with that content : /* Theme Name: Premier Pas Author: Garga Le…
0
votes
0 answers

How to make WordPress Child theme Working?

Changes in .php files within a child theme are not applied on my front-end site. I've activated a WordPress Child Theme called "Grow Child" from parent "Grow". I want to change the footer text and links on my site, so, following the instructions,…
Plamen
  • 11
  • 5
0
votes
1 answer

if body tag has class 'home' via child theme

I'm trying to simply show content with a php if statement. I would like to add a footer element (to the footer.php) for the homepage only. So, if body tag has class 'home'; then add new footer element. I'm trying below; but currently nothing is…
Dr Upvote
  • 8,023
  • 24
  • 91
  • 204
0
votes
0 answers

cannot add capabilities to custom wp user role in child theme

In my child theme's /function.php ; I am calling the below, which seems to register the new role 'marketing_admin', because it is now present in my Wordpress dashboard; however my array of capabilities are being completely ignored. All my code…
Dr Upvote
  • 8,023
  • 24
  • 91
  • 204
0
votes
3 answers

why is the Css file codes in wp child theme written as comment line?

i have style.css in the wp child theme. (Below is the sample code) and this code in the comment line. as far as I know comments have no effect on the layout of a document. well, why are these codes written in the comment line?? /* Theme Name: …
cihankaba
  • 7
  • 6
0
votes
1 answer

Prestashop Child Theme

I have created a Prestashop child theme to a theme I purchased. I can see my child theme (once enabled), but every time I visit the theme page to switch themes I get a 500 error. The way I get around this is to change my child theme's…
Sergio
  • 792
  • 3
  • 10
  • 35
0
votes
1 answer

Difference Between Wordpress Orignal Theme and Child Theme

What is the difference between Wordpress Orignal Theme and Child Theme? Is that necessary to make a child theme after end project or there is no need.
0
votes
1 answer

How to override parent customizer.php in child theme

I am new to Wordpress and PHP, and I am trying to create a child theme for the memberlite theme. I would like to add a custom colour scheme to the customizer, but I can't figure out how to either deregister the parent theme's customizer.php, or to…
jbmoon
  • 129
  • 1
  • 11
0
votes
0 answers

restore my child theme backup

i transferred to a different hosting account and the backup i made belong to the child theme that was madw earlier on the website and now that i need the old settings, so how can i restore my child theme backup on the fresh installed parent theme on…
0
votes
1 answer

how to manage parent and child theme?

I have learned & read many documentations on parent/child themes but I have a doubt about managing both themes in one word press website. I have bought a word press theme, both parent & child themes came in the package, I have setup the parent theme…
Prasad Patel
  • 707
  • 3
  • 16
  • 53