Skip Navigation

[Closed] Read more link to the archive description – taxonomy values – Toolset

This support ticket is created 2 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 2 years, 8 months ago.

Author
Posts
#2298703
Read more...Archive.png
Read more...backend.png

Hi Team,

Hope you are doing good.

I have created few taxonomies for my website e.g., Property Area, Property City.
Archive title and description are enabled for SEO purpose.

Since the description of the taxonomies are long, it is looking bad. Please suggest me any code or tweak where 2 lines of description should be visible adding read more at the button. When Read more clicks then the remaining should be visible.

Please find attached the screenshots for your visibility.

hidden link

Thanks.

#2299053

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

You'll need a custom solution for this.

Wherever you output the description (I don't know whether you are using the block editor or the legacy editor) you'll want to output just an exert from the existing description in one div, a read more link, the rest of the description in another—hidden—div, as well as a custom JavaScript script to reveal the hidden content when the link is clicked.

There isn't an existing solution that will work in this context, you'll need to write one yourself (or have a developer do that for you).

#2301983

Hi Nigel,

In that case, can you please provide me a CSS code to move the archive description to bottom of the page.

Thanks,
Pramod.

#2302055

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

You can't move content around the page with CSS unless your page layout is set up using CSS Grid (which it is not).

You could use a snippet of JS to move the archive description section down the page, but that is not a very optimal solution.

You should instead make a copy of the theme archive PHP template currently in use for this page and name it taxonomy-property-city.php, which will be used for this property-city taxonomy archive. You should then be able to make the minor edits required to the template to put the archive description where you want it, after the main content.

You should make any such changes in a child theme. Consult your theme documentation for more information if needed.

The topic ‘[Closed] Read more link to the archive description – taxonomy values – Toolset’ is closed to new replies.