Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Adding an image to a topic?

Perfect _ck_, thank you, that’s all I needed.

For anyone else interested I added class to the array so I can style the images, so the function now reads:

add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }

then added:

.featureimage {
padding: 4px;
background: #eee;
border: 1px solid #ccc;
max-width:560px;
}
.thumbnail {
float: left;
width: 100px;
height: 100px;
margin: 0 20px 10px 0;
padding: 4px;
background: #eee;
border: 1px solid #ccc;
}

to my style.css

Skip to toolbar