Set Genesis Content Archive Limit Using Code

This code enables you to modify the Genesis > Theme Settings > Content Archives > Character Limit using code. This means you can use the code in your functions file with a conditional tag or directly in a template file to control the character limit and override the settings as seen in the following image:

content-archive-limit

If you want to limit the archive content to a specific amount of characters for one specific type of archive, this code is the solution you need and only works when the Content Archives are configured to display Entry Content.

If you have the settings configured to display Entry Excerpts, use the code in this tutorial instead.

Here’s the code for logged in members:

Related Tutorials

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.