Top

alphaoneweb on "[gallery] shortcode problem on theme"

May 31, 2010 by  

Here’s an example of the generated code:

=====================
POST:
=====================

<!– MAIN –>
<div id=”main” class=”clear”>

<!– MAIN BAR–>
<div id=”mainbar”>
<p><span class=”top_more_fix”></span></p>

<div class=”post-text”>

test
test test

</div>

<div class=”rule”></div>

<div class=”post-info”>
<small>

. </small>

<small>Tags: test, test
Posted in test | test</small>

</div>

<div class=”rule”></div>

<!– You can start editing here. –>

<!– If comments are closed. –>

</div><!– /#mainbar –>

=====================
PAGE:
=====================

<!– MAIN –>
<div id=”main” class=”clear”>
<!– MAIN BAR–>
<div id=”mainbar”>
<p><span class=”top_more_fix”></span></p>

<p><span id=”more-5″></span></p>
<p>example test</p>
<p>test test</p>

<style type=’text/css’>
#gallery-1 {
margin: auto;
}
#gallery-1 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 20%; }
#gallery-1 img {
border: 2px solid #cfcfcf;
}
#gallery-1 .gallery-caption {
margin-left: 0;
}
</style>
<!– see gallery_shortcode() in wp-includes/media.php –>
<div id=’gallery-1′ class=’gallery galleryid-5′><dl class=’gallery-item’>
<dt class=’gallery-icon’>

</dt></dl><dl class=’gallery-item’>
<dt class=’gallery-icon’>

</dt></dl><br style=”clear: both” />
<br style=’clear: both;’ />
</div>

</div><!– /#mainbar –>

Be Sociable, Share!
Share

Comments

Facebook comments:

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!





*
Bottom