Hello I have created a simple shortcode to display an image devider.
added this to my functions php:
add_shortcode( 'divider', 'shortcode_insert_divider' );
function shortcode_insert_divider( ) {
return '<div class="divider"></div>';
}
this is the css:
.divider {
width: 100%;
height: 55px;
background-image: url("http....")
}
so this is the shortcode:
[divider]
Now i'd like to define a different Background image for each time i use the shortcode. How can i implement something like:
[divider src="http://domain.com/image.jpg"]
??? Any Ideas?