Jump to content


Photo

Customise Features title to make it a link to post/page ?


  • Please log in to reply
7 replies to this topic

#1 Danny

Danny

    Is Awesome!

  • Moderators
  • 12988 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 31 July 2011 - 11:02 PM

Hi, I am trying to customise the feature slider and I want to set it so that instead of having to click the more button, users can simply click on the titie of the feature and Im not talking about the option in feature settings. So would I go about doing this ? Thanks Danny

#2 mothpre

mothpre

    Advanced Member

  • Members
  • PipPipPip
  • 58 posts
  • Country: Country Flag

Posted 31 July 2011 - 11:33 PM

I would like to know it too. Thank You

#3 Danny

Danny

    Is Awesome!

  • Moderators
  • 12988 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 01 August 2011 - 02:39 AM

@Mothpre, I got it working for me and here's how I did it. Open up sections.features.php, find this line:

Replace it with:

'>

As you can see, I have added a class to the link, you can rename this whatever you want and apply your own styling.

#4 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 01 August 2011 - 03:29 PM

Thanks Danny ;)

#5 mothpre

mothpre

    Advanced Member

  • Members
  • PipPipPip
  • 58 posts
  • Country: Country Flag

Posted 11 August 2011 - 06:18 PM

@dannyh but it generates somes errors after it: b Warning: Cannot modify header information - headers already sent by (output started at /home/holistic/public_html/journal_es/wp-content/themes/platformpro/sections/features/section.features.php:1) in /home/holistic/public_html/journal_es/wp-includes/pluggable.php on line 897

#6 Danny

Danny

    Is Awesome!

  • Moderators
  • 12988 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 11 August 2011 - 07:56 PM

hmm.... Well it works for Mothpre, I've linked my sections.features.php, you can view it here. http://pastebin.com/4TsRuuPt

#7 pmmyers

pmmyers

    Member

  • Members
  • 18 posts
  • Framework Version:2.4.1
  • Country: Country Flag

Posted 28 May 2013 - 01:30 AM

Hi Danny

 

@mothpre, I got it working for me and here's how I did it. Open up sections.features.php, find this line:

Replace it with: As you can see, I have added a class to the link, you can rename this whatever you want and apply your own styling.

 

Hi Danny,  I am also wanting my headlines to link to different parts of my website and cannot seem to figure it out in the features set up.  To follow your instructions, do I open up the sections.features.php through the customization plugin and just paste your code in?  And, once I do this, do I do it for each page I have a features section or will this function be enabled across my site? Thanks!



#8 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 29 May 2013 - 12:45 AM

Hi there,

 

Any changes you make to the functions.php will be site wide. To do Danny's method above it looks like you'll need to copy the entire features section and place it into your child theme as a new setion. Then in that new child folder replace the code in the sections.features.php with the code Danny linked above.

 

However, this post is two years old now, so there could have been some changes in the code in that section since then.