getting id of page

I think this is what you want: $qobj = get_queried_object(); var_dump($qobj->term_id); get_queried_object will get information about the current page. That information varies by type and content for different pages but on a taxonomy page it will give you a stdClass object with taxonomy data related to that page..

Should I create a child theme for a parent custom theme? [closed]

I would definitely avoid using 2 different wordpress themes and instead code for a more responsive website with CSS mediaqueries. It has worked out very well for me on the WordPress websites I created. If you’re not familiar with media queries, here’s a very basic rundown. HTML — <div class=”box”>hello world</div> CSS — .box { … Read more

Is it possible to use “wordpress.org Theme Handbook” look&feel as a theme in my own site? [closed]

The theme is called “wporg-developer” and is based on underscores. It is not available to download as-is, but it of course open source and GPL licensed. You can get the whole source from the wordpress-meta environment ; you’ll need to use VVV to install the whole thing locally on your computer. Though this theme has … Read more

Detect custom font size

While you can not use CSS to detect Custom font sizes they can be disabled using this code: add_theme_support( ‘disable-custom-font-sizes’ ); Then, to have more control over how the look of font sizes are, we can use: add_theme_support( ‘editor-font-sizes’, array( array( ‘name’ => ‘Small’, ‘slug’ => ‘small’, ‘size’ => ’14px’ ), array( ‘name’ => ‘Normal’, … Read more