StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   is it possible to add google text link below content gallery (http://www.studiopress.com/support/showthread.php?t=11522)

juliansimm 07-23-2009 06:01 AM

is it possible to add google text link below content gallery
 
hello,
i got a question and i would like to add text link to my blog on the home page. Any1 able to help ..? thanks


cheers
julian
http://julianinterior.com

Debra 07-23-2009 06:32 AM

Re: is it possible to add google text link below content gallery
 
That's kinda vague what exactly would you like to do?

juliansimm 07-23-2009 07:16 AM

Re: is it possible to add google text link below content gallery
 
hello,

thank for the reply

i wanted to add google ad text link just between the feature content gallery and my category on my home page.i wonder is it possible or not? many thanks:)

regards
julian
http://julianinterior.com

Debra 07-23-2009 07:41 AM

Re: is it possible to add google text link below content gallery
 
you be able to just open home.php and place it here

To keep it from moving in certain browsers you could wrap it in clear divs

<div class="clear"></div><-----add above and below google code
.clear{clear:both;} <-----add to style sheet

<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>

</div>

<?php endif; ?>
AD CODE

<div class="aheadline">

<h3>Featured Content</h3>

juliansimm 07-23-2009 07:55 AM

Re: is it possible to add google text link below content gallery
 
hello, thanks for the reply.Very sorry i have no knowledge about any php code i so afraid that i will mess it up i copy the home.php and can you indicate where to put in

Thanks
_______________________________________

<?php get_header(); ?>


<div id="homepage">

<div id="contentleft">

<div class="postarea">

<?php if (function_exists('gallery_styles')) : ?>

<div id="fcg">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
</div>

<?php endif; ?>

<div class="aheadline">
<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_left')) ; ?></h3>
</div>

<div class="clear"></div>

<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left') ."&showposts=".get_theme_mod('featured_top_left_nu m')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
[img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&amp;h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>

<h1><?php the_title(); ?></h1>
<?php the_content_limit(400, "[".__("Read more", 'studiopress')."]"); ?>

<hr/>

<?php endwhile; ?>

<?php _e("Read More Posts From This Category", 'studiopress'); ?>

</div>

</div>

<?php include(TEMPLATEPATH."/sidebar.php");?>

</div>

<?php //The main column ends ?>

<?php get_footer(); ?>

__________________________________________________ ___________________________

and you mention about adding

.clear{clear:both;} <-----add to style sheet

i do not add to where to add this
__________________________________________________ __________________________

Debra 07-23-2009 07:59 AM

Re: is it possible to add google text link below content gallery
 
place ad code here just as I showed above

Code:

<?php get_header(); ?>


<div id="homepage">

<div id="contentleft">

<div class="postarea">

<?php if (function_exists('gallery_styles')) : ?>

<div id="fcg">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
</div>

<?php endif; ?>

<div class="clear"></div>
AD CODE

<div class="clear"></div>


<div class="aheadline">
<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_left')); ?></h3>
</div>

<div class="clear"></div>

<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left')."&showposts=".get_theme_mod('featured_top_left_num')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
[img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&amp;h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>

<h1><?php the_title(); ?></h1>
<?php the_content_limit(400, "[".__("Read more", 'studiopress')."]"); ?>

<hr/>

<?php endwhile; ?>

<?php _e("Read More Posts From This Category", 'studiopress'); ?>

</div>

</div>

<?php include(TEMPLATEPATH."/sidebar.php");?>

</div>

<?php //The main column ends ?>

<?php get_footer(); ?>

it goes as I said in your stylesheet style.css. Doesn't matter where just tack it on the end would be fine
Quote:

and you mention about adding

.clear{clear:both;} <-----add to style sheet

i do not add to where to add this

juliansimm 07-23-2009 09:41 AM

Re: is it possible to add google text link below content gallery
 
hello debra,

all working perfectly :D
Thanks you!


Cheers
julian


All times are GMT -5. The time now is 11:39 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.