• Resolved kxt5258

    (@kxt5258)


    How can I remove the time from the “Posted on March 26, 2014 4:30 pm by SomeBody”. I want it to show as “Posted on March 26, 2014 by SomeBody”. By the way, thanks for your answer to my earlier post.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author nobita

    (@nobita)

    Hi kxt5258

    Add to functions.php first line(<?php before ) below code

    <?php
    add_filter( 'raindrops_posted_on', '__return_false' );
    ?>

    Customize your, so as not to be removed under the influence of the update of Raindrops, and advances that you want to create a child theme

    The creation method of a Child Theme

    Child theme name:mysite

    Creation of – theme holder
    wp-content/themes/mysite
    Creation of – stylesheet

    style.css is created in the wp-content/themes/mysite/style.css
    The contents are as follows.
    Creation of a style sheet
    style.css

    /*
    Theme Name: mysite
    Author: Your name
    Author URI: http://yoursite.com
    Version: 0.1
    Template:raindrops
    */

    Usually, when making a チャイルド theme, it is explained that the style of a parent theme is imported as follows, but in rained Rops, it is unnecessary.
    the child theme is detected and it imports automatically.

    /* Raindrops No need import rules like below*/
    @import url('../raindrops/style.css');

    make file functions.php
    ver1.200 ~

    <?php
    
    add_action( 'switch_theme', 'my_uninstall' );
    
    function my_uninstall(){
    
        delete_option("raindrops_theme_settings");
    }
    ?>

    This description is intended to use in a child theme, and change settings of Raindrops, if you uninstall, delete the configuration changes of the parent theme.
    If you did not delete, you may be when you install the new Raindrops, correct, it is not displayed by default.

    Finish.

    Thread Starter kxt5258

    (@kxt5258)

    Hi Nobita,
    The above code removes ALL the “Posted on March 26, 2014 4:30 pm by SomeBody”. I just want to remove the time ( “4:30 pm” ). Any idea about it?

    Theme Author nobita

    (@nobita)

    Dashboard / Settings / General Settings / Time Format

    Set custom and value blank

    If not need ‘Posted on’ , Add to style.css last line below style rule

    .posted-on-string{
    	display:none;
    }

    Thank you

    Thread Starter kxt5258

    (@kxt5258)

    Thanks nobi

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove time from "Posted on…"’ is closed to new replies.