Skip to:
Content
Pages
Categories
Search
Top
Bottom

Insert WP gallery shortcode in activity


  • ggsalas
    Participant

    @ggsalas

    Hi, I would like to insert a gallery-shortcode in the buddypress activity. The shortcode works but shows also a part of the CSS. For example, in a gallery with 2 images, this is the HTML:

    <div class="activity-inner">
    
    				<p>			#gallery-1 {<br>
    				margin: auto;<br>
    			}<br>
    			#gallery-1 .gallery-item {<br>
    				float: left;<br>
    				margin-top: 10px;<br>
    				text-align: center;<br>
    				width: 25%;<br>
    			}<br>
    			#gallery-1 img {<br>
    				border: 2px solid #cfcfcf;<br>
    			}<br>
    			#gallery-1 .gallery-caption {<br>
    				margin-left: 0;<br>
    			}</p>
    <p>		<!-- see gallery_shortcode() in wp-includes/media.php --></p>
    <p>				<a href="http://www.redminka.com/gabriel/2013/07/2-4/img_0030-8/" title="IMG_0030" rel="nofollow"><img width="230" height="230" src="http://www.redminka.com/wp-content/uploads/2013/07/IMG_00307-230x230.jpg" class="attachment-thumbnail" alt="IMG_0030"></a></p>
    <p>				<a href="http://www.redminka.com/gabriel/2013/07/2-4/369_44872556666_7144_n-10/" title="369_44872556666_7144_n" rel="nofollow"><img width="230" height="230" src="http://www.redminka.com/wp-content/uploads/2013/07/369_44872556666_7144_n9-230x230.jpg" class="attachment-thumbnail" alt="369_44872556666_7144_n"></a></p>
    
    			</div>

    And this is the activity: http://www.redminka.com/actividad/#activity-541

    Thanks

  • The topic ‘Insert WP gallery shortcode in activity’ is closed to new replies.
Skip to toolbar