Jump to content


Photo
- - - - -

Broken functions.php

functions.php; broken

Best Answer vburnham , 21 April 2013 - 05:45 AM

I fixed it thanks!

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 vburnham

vburnham

    Advanced Member

  • Members
  • 44 posts
  • Country: Country Flag

Posted 21 April 2013 - 05:19 AM

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



#2 vburnham

vburnham

    Advanced Member

  • Members
  • 44 posts
  • Country: Country Flag

Posted 21 April 2013 - 05:45 AM   Best Answer

I fixed it thanks!