Jump to content
Sign in to follow this  
vitordt

How to add title to Carousel

Recommended Posts

vitordt    0
vitordt

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 http://www.mindon.com.br/v3 (the carousel is at the bottom). Greetings from Brazil ! Cheers

Share this post


Link to post
Share on other sites
catrina    103
catrina

Have you already looked at the tutorial here?: http://www.pagelines.com/docs/base-child-theme It provides steps on how to a hook. Post here again if you need assistance with any of the steps.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
vitordt    0
vitordt

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.

Share this post


Link to post
Share on other sites
Kate    3
Kate

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.

Share this post


Link to post
Share on other sites
vitordt    0
vitordt

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:

   add_action('pagelines_inside_top_carousel','add_carousel_title');
	  function add_carousel_title() {
	    $title = '<p class="carousel_title">Quem mais utiliza</p>';
	    echo apply_filters($title);
	    }

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

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

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

<?php } `

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  

×