Archived

This topic is now archived and is closed to further replies.

  • 0

Broken functions.php


Question

Posted · Report post

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

1 answer to this question

Posted · Report post

I fixed it thanks!

Share this post


Link to post
Share on other sites