Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Custom CSS without plugin

Discussion in 'Misc WordPress Requests' started by Revian, Nov 1, 2017.

  1. Revian


    Reply To: Custom CSS without plugin, by Revian

    This works perfectly for the shortcode implementation (added to functions.php in the theme folder):

    function tipnote_shortcode( $atts , $content = null ) {

    return '<blockquote class="tipnote">' . $content . '</blockquote>';

    add_shortcode( 'tipnote', 'tipnote_shortcode' );

    And this works perfectly for the CSS styling:

    blockquote.tipnote {
    color: #313131;
    background: #dfffd9;
    border: 1px solid #a2cc99;

    I’m adding the above information in case it should be useful to someone in the future.

    Reply To: Custom CSS without plugin

Share This Page

Monarch Social Sharing Plugin