Thanks helga - I have been referencing that but I think you forgot to put brackets () in the beginning of your 'add_stuff' function. I caught it but a total newbie could spend hours trying to figure out why it's not working. Maybe they're not necessary but every other function I have seen has them. I think that is why Launch83's site was not loading as I was having the same problem.
Jonny: I don't have a link at the moment for the simple fact that I am kind of stuck on how to start to code the images.
Here are the functions i have so far (from the previous Masonry post):
function add_stuff(){
if (is_page('Photos')){
wp_enqueue_script('masonry',get_bloginfo('stylesheet_directory') . '/js/jquery.masonry.js');
}
}
add_action('init','add_stuff');
function my_script() {?>
<script> jQuery('#primary').masonry({
columnWidth: 200,
itemSelector: '.box'
}); </script>
<?php }
add_action('wp_head', 'my_script');
function masonry_div() {
{ ?>
<div id="masonry_photo">
<div class="img_col2">...</div>
<div class="img_col1">...</div>
<div class="img_col1">...</div>
<div class="img_col3">...</div>
</div>
<?php }
}
add_action('thematic_belowheader','masonry_div');
My main questions are:
What itemSelector should I use for the images?
How do I code the images? Do I use this <img src="img_file.jpg" width="280" height="160" /> inside the divs or in CSS?
Am I even on the right track here?
Thanks!