only4gamersml
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to set the Default profile pic for comments@threadi Thanks for the reply. This is not the plugin I am talking about. But this plugin
https://www.ads-software.com/plugins/wp-user-avatar/Anyway the question is not about the plugin. I want to set one profile pic for myself and one profile pic for everyone else. And I want to do this using the code, and I want to use a svg image here.
Forum: Plugins
In reply to: [Perfecty Push Notifications] Few questions related pluginThe notification picture is assigned from the Feature image in the post. Otherwise it will use the first image from the post’s content.
Actually I am talking about creating notification from Perfecty Push > Send notification. There is no option for choosing Icon url here.
and I have one more request.
Please add preview of notification, like how icons, images etc will look before publishing notification.Thanks
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.
*** After inspecting I noticed there is a line in style.min.css file, located in theme directory assets/css/ which is creating problem.
Forum: Everything else WordPress
In reply to: Lightweight Analytics Solution/PluginThank you so much @sterndata . I will ask my host about this ASAP. in case this feature not available. Can you please suggest me best plugin for this? Like one plugin in my mind is WP Stats, which host everything in my website.
Forum: Everything else WordPress
In reply to: Lightweight Analytics Solution/PluginThank you @sterndata . I have no problem with bundersome data. I am using Google Analytics for 7 years. But it’s destroying my page speed. That’s why I am replacing it. As jetpack is a really big plugin, is it best solution? As using jetpack just for analytics not sounding right. Or Jetpack Stats available separately?
Forum: Everything else WordPress
In reply to: Lightweight Analytics Solution/Plugin@lcf thank you so much for help. But it’s a Paid solution. In free plan there is only Unique Visitors count is showing.