File: /home/dakarash.co.id/public_html/public_html/wp-content/themes/astra-child/functions.php
<?php
/**
* Recommended way to include parent theme styles.
* (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
*
*/
add_action( 'wp_enqueue_scripts', 'astra_child_style' );
function astra_child_style() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') );
}
/**
* Your code goes below.
*/
function my_custom_scripts() {
wp_enqueue_script('script', get_stylesheet_directory_uri() . '/scroll.js', array( 'jquery' ), 1.1, true);
}
add_action( 'wp_enqueue_scripts', 'my_custom_scripts' );
add_filter( 'genesis_post_info', 'post_info_filter' );
function post_info_filter($post_info) {
if (is_category('Services')) {
$post_info = '[post_date]'; // removed by [post_author_posts_link] at [post_time] [post_comments] [post_edit]
return $post_info;
}}