Function new code tag to style css
-
Hello friends
i add new code tag for making new beautiful codebox, it is in function.php:
function codequote( $atts, $content = null ) { extract(shortcode_atts(array( 'float' => 'none', ), $atts)); return '<style type="text/css"> .codequote{ ...;} .codequote:after{ ...;} a:hover{...;} </style> <div class="codequote ' . $float . '">' . $content . '</div>'; } add_shortcode('code', 'codequote');then it executes and shows error message “syntax error, unexpected T_CONSTANT_ENCAPSED_STRING(line number to <div class=”codequote…..</div>’;)”
can someone help me to solve it?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Function new code tag to style css’ is closed to new replies.