Jump to content
Sign in to follow this  
vburnham

Broken functions.php

Recommended Posts

vburnham    0
vburnham

I was trying to add this code to my functions.php file

//ADD CATEGORY TITLE AT TOP OF CAT PAGES
   add_action('pagelines_inside_top_postloop','cat_title');
   function cat_title(){
   if ( is_category() ) {
   ?>
   <h2 class="cat-title"><?php single_cat_title(); ?></h2>
   <?php
   }
   }

 

But I'm afraid in doing so I broke the file. I tried to put the original file content in there but I am still getting an error saying that there is an unexpected } in my line 8 but I don't see it. Can anyone help me?

Thanks!

trifuse.org

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  

×