theme.php
Child theme general appearance.
Tags
Table of Contents
Functions
- get_theme_metadata() : string
- Return a metadata value.
- remove_admin_bar() : void
- Hide WordPress admin bar for all but administrator.
- remove_image_nav() : void
- Remove #main anchor from attachment links.
- theme_support() : void
- Override theme supported features.
- post_type_support() : void
- Add feature support to post types.
- title_separator() : string
- Set page title separator.
- read_more_link() : bool
- Change the read more link to prevent scroll on target page.
- disable_schema() : bool
- Override theme generated schema.
- get_scroll_offset() : int
- Get the offset from top of page for smooth scroll.
Functions
get_theme_metadata()
Return a metadata value.
get_theme_metadata(string $field) : string
Parameters
- $field : string
-
The field to search for.
Tags
Return values
string —The metadata value.
remove_admin_bar()
Hide WordPress admin bar for all but administrator.
remove_admin_bar() : void
Tags
remove_image_nav()
Remove #main anchor from attachment links.
remove_image_nav() : void
Tags
theme_support()
Override theme supported features.
theme_support() : void
Tags
post_type_support()
Add feature support to post types.
post_type_support() : void
- Enable the excerpt meta box in page edit screen.
Tags
title_separator()
Set page title separator.
title_separator(string $separator) : string
Parameters
- $separator : string
-
Document title separator.
Tags
Return values
string —Modified document title separator.
read_more_link()
Change the read more link to prevent scroll on target page.
read_more_link() : bool
Tags
Return values
bool —Scroll to
disable_schema()
Override theme generated schema.
disable_schema() : bool
- Now uses RankMath generated schema.
Tags
Return values
boolget_scroll_offset()
Get the offset from top of page for smooth scroll.
get_scroll_offset() : int
Tags
Return values
int —The number of pixels to offset the scroll.