Ignore Elements (Ads, Related Posts)

Prevent ads or non-essential content from being summarized.

Remi

Last Update 3 maanden geleden

  1. In your WordPress dashboard, go to Content Configuration > Excluded Classes or Selectors.

  2. Here you'll need to add the "CSS Classes or Selectors" of elements you want to ignore. These are similar to addresses or labels that identify certain parts of your website like ads or related posts.


Examples:

  • .related-posts (This will exclude all related post sections.)
  • #comments (This will exclude the comments section.)
  • .ads (This will exclude all ads.)


When you exclude these elements, they won't be included in the summaries.


Note: A CSS Class starts with a dot (.) and a CSS ID starts with a hash (#). For example, .banner refers to a class called "banner", and #comments refers to an ID named "comments". You can find these in your website's code using the "Inspect" tool in your browser, similar to the process described in the previous article about targeting specific content sections.


By excluding non-essential elements, you can ensure that your summaries are concise and focused on the main content, providing a better experience for your readers.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us