Jump to content


Photo
- - - - -

How to add title to Carousel


  • Please log in to reply
6 replies to this topic

#1 vitordt

vitordt

    Advanced Member

  • Members
  • 35 posts

Posted 12 July 2011 - 08:28 PM

Hi guys I would like to add a title to Carousel in one of my pages. I have seen other topics and it need to create a hook on on functions.php. Would you help me with the coding? The page is

Please Login or Register to see this Hidden Content

(the carousel is at the bottom). Greetings from Brazil ! Cheers

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 13 July 2011 - 02:21 AM

Have you already looked at the tutorial here?:

Please Login or Register to see this Hidden Content

It provides steps on how to a hook. Post here again if you need assistance with any of the steps.

#3 vitordt

vitordt

    Advanced Member

  • Members
  • 35 posts

Posted 13 July 2011 - 11:20 AM

Hi Catrina, Thank you for the video. I did watch it, but it didn't specifically say anything about adding title to carousel or other feature. Would you be able to provide me with the code for this function? Cheers.

#4 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 13 July 2011 - 03:15 PM

Hey Vitor, If you go to Settings->Template Setup->Carousel Page, under "PageLines Carousel" there is a dropdown titled "Advanced Setup". There's a list of "Standard Hooks" listed there that you can use.

#5 vitordt

vitordt

    Advanced Member

  • Members
  • 35 posts

Posted 13 July 2011 - 04:37 PM

Hi Kate and Catrina

I think I got the code wrong.

I would like to insert a title in the Carousel.

The code I inserted in Functions.php is:

Please Login or Register to see this Hidden Content


Just before the carousel is showing the following error:

Warning: Missing argument 2 for apply_filters(), called in /home/mindon/www/v3/wp-content/themes/platformbase/functions.php on line 106 and defined in /home/mindon/www/v3/wp-includes/plugin.php on line 134


Can you please help me?

Thanks
V?­tor

#6 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 13 July 2011 - 10:15 PM

If you just want the title to show you can simplify it ` add_action('pagelines_inside_top_carousel','add_carousel_title'); function add_carousel_title() {?>

your title


#7 vitordt

vitordt

    Advanced Member

  • Members
  • 35 posts

Posted 14 July 2011 - 01:29 PM

Thanks Adam, You rock!