Hello @abhikr781
Thanks for reply. But I already have a child theme. As I said above I want to modify style.min.css file, located in theme directory oceanp/assets/css/[here]. So, I created style.min.css file in oceanp-child/assets/css/[here] to overwrite parent file but this didn’t done anything. This is my functions.php file:
<?php
function oceanwp_child_enqueue_parent_style() {
$theme = wp_get_theme( ‘OceanWP’ );
$version = $theme->get( ‘Version’ );
wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘oceanwp-style’ ), $version );
}
add_action( ‘wp_enqueue_scripts’, ‘oceanwp_child_enqueue_parent_style’ );
?>
<?php
add_theme_support( ‘post-thumbnails’ );
add_image_size( ‘relatedpostthumb’, 96, 96 );
add_image_size( ‘crp_thumbnail’, 135, 135 );
?>
<?php
function wpse218025_remove_comment_author_link( $return, $author, $comment_ID ) { return $author; } add_filter( ‘get_comment_author_link’, ‘wpse218025_remove_comment_author_link’, 10, 3 );
?>
<?php
add_filter( ‘llc_loader_element_content’, function () {
return ‘<p class=”custom-loader”><br/><b>Comments are loading… Please wait</b></p>’; });
add_filter( ‘llc_button_class’, function () { return ‘buttongreen’; });
?>
<?php
add_filter(‘comment_form_default_fields’, ‘website_remove’, 60 );
function website_remove($fields) { if(isset($fields[‘url’])) unset($fields[‘url’]); return $fields; }
?>
<?php
add_action( ‘wp_print_styles’, ‘tn_dequeue_font_awesome_style’, 999 );
function tn_dequeue_font_awesome_style() { wp_dequeue_style( ‘font-awesome’ ); wp_deregister_style( ‘font-awesome’ );
wp_dequeue_style( ‘simple-line-icons’ );
}
?>
<?php
function my_read_more_text() { return ‘Read More’; } add_filter( ‘ocean_post_readmore_link_text’, ‘my_read_more_text’ );
function new_excerpt_more( $more ) { return ‘…’; } add_filter(‘excerpt_more’, ‘new_excerpt_more’);
function exclude_category_home( $query ) {
if ( $query->is_home ) {
$query->set( ‘cat’, ‘-141, -161’ );
}
return $query;
}
add_filter( ‘pre_get_posts’, ‘exclude_category_home’ );
?>
<?php
function crunchify_social_sharing_buttons($content) {
global $post;
if(is_singular() || is_home()){
// Get current page URL
$crunchifyURL = urlencode(get_permalink());
// Get current page title
$crunchifyTitle = htmlspecialchars(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, ‘UTF-8’)), ENT_COMPAT, ‘UTF-8’);
// $crunchifyTitle = str_replace( ‘ ‘, ‘%20’, get_the_title());
// Construct sharing URL without using any script
$facebookURL = ‘https://www.facebook.com/sharer/sharer.php?u=’.$crunchifyURL;
$twitterURL = ‘https://twitter.com/intent/tweet?text=’.$crunchifyTitle.’&url=’.$crunchifyURL.’&via=only4gamers_xyz’;
$whatsappURL = ‘https://api.whatsapp.com/send?text=’.$crunchifyTitle.’ ‘.$crunchifyURL;
$vkURL = ‘https://vk.com/share.php?url=’.$crunchifyURL.’&title=’.$crunchifyTitle;
// Add sharing button at the end of page/page content
$content .= ‘<div class=”breadcrumb5″>’;
$content .= ‘Broken link? Game not working? Any other problem? Just let us know!’;
$content .= ‘</div>’;
$content .= ‘<div class=”crunchify-social”>’;
$content .= ‘<h4>Share On:</h4> Facebook‘;
$content .= ‘Twitter‘;
$content .= ‘WhatsApp‘;
$content .= ‘VK‘;
$content .= ‘</div>’;
return $content;
}else{
// if not a post/page then don’t include sharing button
return $content;
}
};
add_filter( ‘the_content’, ‘crunchify_social_sharing_buttons’);
?>`
Please help.