• Hello everyone,
    There are few problems I am facing related theme style from few months. Whenever I am clicking a button it’s becoming invisible/white. After inspecting I noticed there is a line in style.min.css file, located in theme directory assets/css/. I want to override this css file with my own, so that I can fix this problem and remove unused codes also. How to override this css file? Please help.
    Thanks

    • This topic was modified 3 years, 2 months ago by only4gamersml.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter only4gamersml

    (@only4gamersml)

    *** After inspecting I noticed there is a line in style.min.css file, located in theme directory assets/css/ which is creating problem.

    Hello,

    You can copy the file in the child theme and edit it as per need.
    If possible share the steps to see the issue.

    https://docs.oceanwp.org/article/90-sample-child-theme

    Thread Starter only4gamersml

    (@only4gamersml)

    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=&#8217;.$crunchifyURL;
    $twitterURL = ‘https://twitter.com/intent/tweet?text=&#8217;.$crunchifyTitle.’&url=’.$crunchifyURL.’&via=only4gamers_xyz’;
    $whatsappURL = ‘https://api.whatsapp.com/send?text=&#8217;.$crunchifyTitle.’ ‘.$crunchifyURL;
    $vkURL = ‘https://vk.com/share.php?url=&#8217;.$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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to override style.min.css file with my own css file’ is closed to new replies.