StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 07-23-2009, 06:01 AM
juliansimm juliansimm is offline
Registered User
Pro Plus Member
 
Join Date: Jul 2009
Posts: 68
Default 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
  #2  
Old 07-23-2009, 06:32 AM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default Re: is it possible to add google text link below content gallery

That's kinda vague what exactly would you like to do?
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse

Make life easier use FireFox and these Customizing tools: Firebug - Web Developer

New to Genesis? See our Guide for Beginners!

Recommended StudioPress Designer
StudioPress on Facebook
  #3  
Old 07-23-2009, 07:16 AM
juliansimm juliansimm is offline
Registered User
Pro Plus Member
 
Join Date: Jul 2009
Posts: 68
Default 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
  #4  
Old 07-23-2009, 07:41 AM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default 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>
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse

Make life easier use FireFox and these Customizing tools: Firebug - Web Developer

New to Genesis? See our Guide for Beginners!

Recommended StudioPress Designer
StudioPress on Facebook
  #5  
Old 07-23-2009, 07:55 AM
juliansimm juliansimm is offline
Registered User
Pro Plus Member
 
Join Date: Jul 2009
Posts: 68
Default 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
__________________________________________________ __________________________
  #6  
Old 07-23-2009, 07:59 AM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default 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
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse

Make life easier use FireFox and these Customizing tools: Firebug - Web Developer

New to Genesis? See our Guide for Beginners!

Recommended StudioPress Designer
StudioPress on Facebook
  #7  
Old 07-23-2009, 09:41 AM
juliansimm juliansimm is offline
Registered User
Pro Plus Member
 
Join Date: Jul 2009
Posts: 68
Default Re: is it possible to add google text link below content gallery

hello debra,

all working perfectly :D
Thanks you!


Cheers
julian
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can WP Gallery images link to a content page? jimpepe General Discussion 2 07-20-2010 01:43 PM
Placing a google ad above the content gallery fritzwenzel General Discussion 7 01-31-2010 04:14 AM
Google Chrome won't show Featured Content Gallery Stewart General Discussion 1 03-23-2009 10:55 PM
Featured Content Gallery Text gollywill General Discussion 13 11-30-2008 09:02 PM


All times are GMT -5. The time now is 02:04 AM.

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