Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi,
I’m looking for a way to remove the PLAY button on the Focus slider for posts that aren’t a video.
Examples here:
http://everythingvoice.co.uk/
The first post (image on the slider) is actually a written post, not a video post. The ability to change the play button to a ‘Read More’ button on an adhoc basis would be great.
Any way to do this?
HI Richard
This is a bit trickier than removing it globally. Have you considered heading to Appearance > Theme Settings and rather restricting your slider to a certain category, thereby removing posts that aren’t videos from your slider?
Assign video posts a video category or tag and assign a different category to text posts.
Then you can set a check for if post has a given category, give the post a .play class (this shows the play button) and if not, give the post a .text class (copy the .play class in the css and change the image url).
Alternatively, you could setup a post type one for videos and one for text (this is really how the theme SHOULD be set up). This way it is as simple as assigning a post type rather than a category or tag.