• Resolved CanWestBoss

    (@canwestboss)


    I have installed the plugin and created a child theme. I called it CustomizerChild
    When I go tho the editor and select the child theme it gives me two files that I can edit. tThe One I want to edit is function.php. I open the file and then past in the code to show a widget area under the header. I got this from the customizer site.

    After updating the file I go to Appearance>Themes>Widgets and the new widget area is not there.

    If on the other hand I paste this same code into the non child theme’s function.php everything works well.

    If I go to Appearance>Themes> it shows that the child has been attached to the parent theme.

    Any ideas

    https://www.ads-software.com/plugins/childify-me/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Rocco Aliberti

    (@d4z_c0nf)

    Hi CanWestBoss,
    once the child theme is created with its style.css (with the Template attribute pointing to the parent Customizr) and its functions.php, this plugin has done its work. ??
    If the code is correctly wrote in the child-theme functions.php, the only reason why that code isn’t working I can think of is that you didn’t activate your child-theme. So, is your child-theme your current active theme?

    Thread Starter CanWestBoss

    (@canwestboss)

    The theme is the active one. This is confusing to say the least

    Plugin Author Rocco Aliberti

    (@d4z_c0nf)

    Hi,
    sorry I don’t understand from your reply whether the parent theme is the active one or the child is the active one.
    If you want to use a child theme, the child-theme must be the active one. This is not about this plugin, or the theme. Is how wordpress works.
    https://codex.www.ads-software.com/Child_Themes

    If the child-theme is the active one, and it’s recognized as Child of Customizr (or whatever parent theme), the child theme is working, if that code doesn’t work could depend on some error you made while copy/pasting the code in its functions.php.
    Anyway, all this is beyond this plugin, whose only goal is to create a directory a style.css which says that it’s the child of another theme and a functions.php where you can put custom functions. ??

    Cheers

    Thread Starter CanWestBoss

    (@canwestboss)

    The child theme is the active one. When i paste the code onto the child theme’s function.php it does not work. When I paste it into the parent theme’s function.php it does work.

    This leads me to believe that the child them is not communicating with the parent theme if that is indeed how it works. I am just learning wordpress. I love the idea of a child theme. jusr cant seem to hget it to work

    Plugin Author Rocco Aliberti

    (@d4z_c0nf)

    Hi,
    I presume you’re talking about child-theme functions.php (of course might be just a typo, but if your really put functions on function.php it doesn’t work).
    Anyway if the child-theme is the active one. And the child-theme points to the parent (you can verify it easily, well .. just looking at your site if it looks like Customizr, or if you have the Customizr options in Appearance -> Customize, or just if you look at the child-theme style.css you should see Template: customizr), then the only reason I can think about is something missing in your child-theme functions.php, dunno what, if you want to paste your child-theme functions.php in pastebin.com and put the link here I can take a look.
    But as said, once verified the child-theme actually points to Customizr, the work of this plugin is done. Also Customizr doesn’t have to do anything to load the child-theme functions.php, is something wordpress takes care about.

    Cheers

    Thread Starter CanWestBoss

    (@canwestboss)

    I found the problem. Or should I say it fixed itself. I attempted to add the code again. On the fourth attempt it worked. Go figure. Has to be fat finger syndrome.

    Plugin Author Rocco Aliberti

    (@d4z_c0nf)

    Ahaha,
    well so might be some server side caching??
    Anyway glad you solved, and thanks for updating me! ??

    Cheers

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Does not seem to work’ is closed to new replies.