Before you ask please READ THIS

child theme function file error

Hi, A couple of issues with the Xpert theme.
1: line 8 of the child theme:
array_push($user_css_deps, array('child-style'));

throws up an error message on pages:

Warning: array_push() expects parameter 1 to be array, null given in /home/..../functions.php on line 8

2: I imported the demo content and the progress bars on the resume portion of the homepage work fine, but when I edit them or try to add a new progress bar they do not work. (pie cahrts do, though) ??? not sure what that means. In the code on the published page I get this in the span:

%5B%7B%22label%22%3A%22Illustration%22%2C%22value%22%3A%2290%22%2C%22customcolor%22%3A%22%23dd2e2e%22%7D%2C%7B%22label%22%3A%22Illustration%22%2C%22value%22%3A%2290%22%2C%22customcolor%22%3A%22%23dd2e2e%22%7D%2C%7B%22label%22%3A%22WebDesign%22%2C%22value%22%3A%2280%22%2C%22customcolor%22%3A%22%23ebab20%22%7D%2C%7B%22label%22%3A%22Logo%22%2C%22value%22%3A%2270%22%2C%22customcolor%22%3A%22%2340b7d9%22%7D%2C%7B%22label%22%3A%22Animation%22%2C%22value%22%3A%2260%22%2C%22customcolor%22%3A%22%2377b71b%22%7D%5D%

Great theme. I am enjoyinhg working with it...except for these small things. Thanks for your help.

Chris

Comments

  • PS. also, the same progress bars work fine if I use another theme. Thanks for the help.
  • edited October 2015 Posts: 1,758
    Hi
    Thanks You for this report.
    I've found the problems' source, and I'll fix that ASAP.
    Post edited by surgeon on
    Remember to rate our theme if you like it ;)
    All the Best.
  • Posts: 1,758
    If You can't wait for the update, AND You're ok to do some file's editing then:
    1.
    Go to function.php file of child theme, find code
    $user_css_deps = $wp_styles->registered['user-css']->deps;
    and replace it with
    $user_css_deps = $wp_styles->registered['xpert_user-css']->deps;
    2.
    there's a ..\wp-content\themes\xpert\vc_templates folder. Go there and delete file vc_progress_bar.php
    Remember to rate our theme if you like it ;)
    All the Best.
  • Thank you so much. Worked fine. Loving the theme...and thank you for the super fast response and solution!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!