Question
I have created a child theme, and I am trying to add a shortcode to its functions.php file, by doing this: // functions.php of child theme <?php include(WP_CONTENT_DIR . '/graduates_functions.php'); ?> // graduates_functions.php <?php // [bartag foo="foo-value"] function sayhi_func( $atts ) { extract( shortcode_atts( ...
0
, 2 weeks 0 Answers 23 views

Question
I intended to load a script within a child's theme because I wanted to experiment with a feature. Initially, I loaded the script as follows: // loading menu toggle function function menu_toggle_enqueue_script() { wp_enqueue_script( 'menu-toggle', get_template_directory_uri().'/assets/js/menu.js'); } add_action('wp_enqueue_scripts', 'menu_toggle_enqueue_script'); Unfortunately, that returned an ...
0
, 2 weeks 0 Answers 24 views