• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Change Read More Text Conditionally

A member of the Genesis community asked :

Is there a way to change the “read more” text in certain categories? I am aware of how to change the “read more” button (text) in all results (pages, posts etc), but is there a way to change what is says (the text) for certain categories only?

Add the following PHP code to your child themes functions file.

Uses a ternary operator.

You can also use code like this with any conditional tag:

Read More

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags