• natasza2023

    (@natasza2023)


    Hello,

    I am trying to use a child theme so that I don’t lose all changes with updates. But my problem is that all the changes that I make in the child functions.php file are not implemented, but they are when I make the same changes in the parent functions.php file.

    Please help!

    kind regards,

    natasza

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can generate Astra Child Theme from here: https://wpastra.com/child-theme-generator/

    Know more about Child Theme: https://wpastra.com/guides-and-tutorials/wordpress-create-child-theme/

    Thread Starter natasza2023

    (@natasza2023)

    Thank you for your advice, but i already have astra child theme. My problem is that all the changes that I make in the astra child theme functions.php file are not implemented.

    kind regards,

    natasza

    Hi @natasza2023,

    Would you mind sharing with us the snippet you added to the functions.php file of your child theme, and what does that code do?

    Kind regards,
    Herman ??

    Thread Starter natasza2023

    (@natasza2023)

    Hello,

    i added following snippets to the functions.php?file of our child theme:

    /**

    • Remove “Add New Tag”, “Add New Category”
      */
      add_action(‘admin_head’, ‘my_custom_admin_style’);
      function my_custom_admin_style(){
      echo ”;
      }

    /**

    • Remove “Screen Options”
      */
      function wpb_remove_screen_options() {
      if(!current_user_can(‘manage_options’)) {
      return false;
      }
      return true;
      }
      add_filter(‘screen_options_show_screen’, ‘wpb_remove_screen_options’);

    /**

    • Function Radio Station PRO -> Elementor Gallery
      */
      function rsp_teleporter_elementor_fix( $classes ) {
      $classes .= ‘,e-gallery-item’;
      return $classes;
      }
      add_filter( ‘teleporter_ignore_classes’, ‘rsp_teleporter_elementor_fix’, 11 );

    kind regards,

    natasza

    Hi @natasza2023,

    Thanks for sharing the snippet.

    Are you trying to remove a few things from WordPress Dashboard using those snippets? If you are, is the snippet above is working with the default WordPress theme, as the things you try to remove are not coming from Astra.

    I am not sure where the Function Radio Station PRO -> Elementor Gallery is coming from, however, Tag, Category, and Screen Options are coming from WordPress.

    Kind regards,
    Herman ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.