File: /home/.Trash/apollon/public_html/wp-content/themes/oceanwp-child/functions.php
<?php
/**
* Child theme functions
*
* When using a child theme (see http://codex.wordpress.org/Theme_Development
* and http://codex.wordpress.org/Child_Themes), you can override certain
* functions (those wrapped in a function_exists() call) by defining them first
* in your child theme's functions.php file. The child theme's functions.php
* file is included before the parent theme's file, so the child theme
* functions would be used.
*
* Text Domain: oceanwp
* @link http://codex.wordpress.org/Plugin_API
*
*/
/**
* Load the parent style.css file
*
* @link http://codex.wordpress.org/Child_Themes
*/
function oceanwp_child_enqueue_parent_style() {
// Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
$theme = wp_get_theme( 'OceanWP' );
$version = $theme->get( 'Version' );
// Load the stylesheet
wp_enqueue_style('slick-theme', get_stylesheet_directory_uri() . '/extensions/slick/slick-theme.css', array(), $version);
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'oceanwp-style' ), $version );
wp_enqueue_script('slickjs', get_stylesheet_directory_uri() . '/extensions/slick/slick.min.js', array(), $version, true);
wp_enqueue_script('child-js', get_stylesheet_directory_uri() . '/js/main.js', array(), $version, true);
}
add_action( 'wp_enqueue_scripts', 'oceanwp_child_enqueue_parent_style' );
/**
* Change the Related Posts title "You Might Also Like" by "Related Posts"
*/
function myprefix_related_posts_title() {
return 'Other Properties';
}
add_filter( 'ocean_related_posts_title', 'myprefix_related_posts_title' );