Jump to content
Sign in to follow this  
aiiiiit

Banners in categorypage

Recommended Posts

aiiiiit

Hello! I'm using Platform Pro for my site. Everything is rolling fine, but I've got a problem. I'm using multiple blogs via categories. I'm creating one category for each blog. I want to insert different banners in different blogs. How to do this?

Share this post


Link to post
Share on other sites
cmunns

Best way to do is using hooks and adding HTML. The built in banners are not yet setup to handle non-meta pages such as category, archive, etc. Are you familiar with HTML?

Share this post


Link to post
Share on other sites
stevenlampagelines

Adam, aren't the banner sets in v1.3.2 screwed up anyway?

Share this post


Link to post
Share on other sites
bencloson

Hi Adam, I've got the same problem. Have you an example of the hooks you would do to solve it? I'm familiar with HTML/CSS Thank you

Share this post


Link to post
Share on other sites
aiiiiit

I'm also familiar with both HTML and CSS.

Share this post


Link to post
Share on other sites
cmunns

@Steven there was a bug but that fix isn't going to help you because category pages don't have meta option handling. Depending on the category you would do this: ` add_action ('pagelines_after_primary-nav','category_highlight'); function category_highlight(){?> <?php if(is_category() || is_home()):?>

<?php if(is_category('cat1') || in_category('cat1') || is_single()):?> yourimage.jpg <?php elseif(is_category('cat2') || in_category('cat2') || is_home()):?> yourimage_alt.jpg <?php endif;?>
<?php endif;?> <?php } `

Share this post


Link to post
Share on other sites
stevenlampagelines

@cmunns, Andreas' is the one with the category issue. I actually do have the issue with banner sets, but I'm just going to use boxes and rework my pages.

Share this post


Link to post
Share on other sites
cmunns

functions.php file for PlatformBase

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×