🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
CSS Page Ancestors icon
Möglicherweise aufgegeben Tested up to 4.8.35 #2 in ancestor

CSS Page Ancestors

Please, keep in mind that THIS IS IN BETA. I’m relying to your feedback, positive or with suggestions, to release it out of beta

Aktive Installationen<10Neu
Downloads · 30d37▲ +68.2% vs prev. 30d
Wertung—0 Bewertungen
Gesundheits-Score21/100In Gefahr
Downloads aller Zeiten1.6KSince Nov 2017
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 3.3PHP 5.6+
Downloads · 7d11▲ +57.1% week over week
Unser Urteil

Betrachten Sie eine Alternative

CSS Page Ancestors shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 9 years ago, and scores 21/100 on our health check.

  • Kleine Benutzerbasis (<10 aktive Installationen)
  • Bisher sehr wenige Bewertungen
  • Kein Update in 9 Jahren
  • Nur getestet bis WordPress 4.8 (letzt ist 7.1)

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

123Sep 3Oct 17Dec 1
Gestern2
Täglicher Durchschnitt (1 Jahr)1
Spitzentag9May 5, 2026
Letzte 12 Monate537

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where CSS Page Ancestors stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
ancestor >100 187 Best ancestor plugins →
ancestors >100 188 Best ancestors plugins →
css >100 10,000 Best css plugins →
father #21 31 Best father plugins →

About CSS Page Ancestors

From the official readme · v0.95

Beschreibung

Please, keep in mind that THIS IS IN BETA. I’m relying to your feedback, positive or with suggestions, to release it out of beta

This plugin will give you the extra class you need in your tag of ALL (and not just one) of the anchestors of a page in WordPress.

This way you will be able to color a certain section of a site, based on the root’s ancestor – no matter how deep is the page (WordPress does this only for the direct father of a page)

Also, the printed class names are ancestor-[slug] and ancestor-id-[id]. This way, you can use it with your page slug (very conviniate if you move sites between instalations where id can change) and id (useful if you use a non-latin site, and slug can’t be used in css)

–

So, let’s imagine you have this tree of pages on your site:

  • Zuhause
  • Klientel
    • Web
      • EShops
      • Portefeuille
    • Print
  • Kontakt

Let’s see this scenario: You want all the pages under ‘Clients’ to have a red background. Now, it’s easy to do that – but only for the ‘Web’, and ‘Print’ pages because WordPress gives you only the fathers in the body classes – in this case, the id of ‘Clients’. ‘Eshops’ and ‘Portfolio’ can also have a red background, but you will have to add a new class in your css with the id of ‘Web’ at your css. And, if you add pages under ‘Eshops’, same thing, you will have to add a new class in your css file with the id of ‘Eshops’ page. So, all this is easy if you do it yourself – but if you handle the site to an editor, that knows only to create content – you will have to add the class in the CSS every time someone adds a level to all this.

With this plugin all the ancestors of a page, no matter the depth will be in your body as class names – as a slug, and as an id. And you want all the pages under ‘Clients’ to have a red background you just add to your css .achestor-clients {background:red;} in your css, and you are done – no matter the level the final page is under.

Finaly, the order is with top ancestor first (in our example, Portfolio page will have “ancestor-clients ancestor-web”) – this way, it’s simpler in CSS to overwrite the -clients class with the -web attributes.

There is no writing on the database, or other change on the site, so, even if something goes wrong, just de-activate the plugin, and you’ll be fine.

Installation

  1. Upload the plugin files to the ‘/wp-content/plugins/plugin-name’ directory, or install the plugin through the WordPress plugins screen directly.

  2. Aktivieren Sie das Plugin über den Bildschirm „Plugins“ in WordPress

  3. The new classes will be automatically added to your body (IF your theme is provided with the body_class() function)

Änderungsprotokoll

0.95

Removed the manual installation of the plugin, and converted it to a filter, so the users won’t touch their theme. (Thanks WordPress Plugin Directory Team for the tip!)

0.9

Beta release.

0.8

Added the anchestor-id-[id] css class, for non-latin page slugs

0.1

Hey, i have an idea! What if… 🙂

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

That's what you expect to see in view source of your page
That's what you expect to see in view source of your page

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best CSS Page Ancestors alternatives

All ancestor plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Menu-item-ancestor Menu-item-ancestor Adds a menu-item-ancestor class to every menu item that has descendants. by valentinas 10+ ★★★★★★★★★★ Keine Bewertungen Vor 16 Jahren 23

Fragen und Antworten

CSS Page Ancestors: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is CSS Page Ancestors free?

Yes. CSS Page Ancestors is free to download and use from the official WordPress.org plugin directory.

Is CSS Page Ancestors safe to use in 2026?

CSS Page Ancestors shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 9 years ago, and scores 21/100 on our health check.

How many websites use CSS Page Ancestors?

CSS Page Ancestors is active on <10 WordPress websites and has been downloaded 1,591 times since it launched in November 2017. It was downloaded 37 times in the last 30 days.

Does CSS Page Ancestors work with WordPress 7.1?

CSS Page Ancestors is officially tested up to WordPress 4.8.35, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does CSS Page Ancestors need?

CSS Page Ancestors requires PHP 5.6 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was CSS Page Ancestors last updated?

The latest version, 0.95, was released on November 19, 2017 (9 years ago).

Who makes CSS Page Ancestors?

CSS Page Ancestors is developed and maintained by giannisg.

What are the best alternatives to CSS Page Ancestors?

The most popular alternatives to CSS Page Ancestors are Menu-item-ancestor (10+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen