Saltar al contenido
NewsBook

Documentación de NewsBook

Guía de configuración y personalización del tema de WordPress NewsBook: instalación, cabecera, pie de página, diseño, widgets y ajustes de la página de inicio.

Instalación

From your WordPress dashboard go to Appearance → Themes → Add New, search for “NewsBook”, then click Install and Activate.

To install manually, download the .zip from WordPress.org and upload it under Appearance → Themes → Add New → Upload Theme. Upload the archive as it is; WordPress rejects an unzipped folder.

The readme lists WordPress 4.5 and PHP 5.6 as minimums. No plugin is required. Yoast SEO is optional and adds a breadcrumbs switch; Jetpack is optional and adds infinite scroll.

Ajustes de la cabecera

The header has the logo or site title and tagline on the left and the Header Right widget area on the right, with the Primary menu in a bar underneath.

Set the logo under Appearance → Customize → Site Identity. NewsBook adds “Set custom height for Logo”; tick it and enter a height in pixels (default 60).

Assign a menu to the Primary location under Appearance → Menus. On small screens it collapses behind a “Primary Menu” button.

Fill the Header Right area under Appearance → Widgets. The NB: 728x90 Advertisement widget is sized for it. If Yoast SEO is active, a breadcrumbs checkbox appears in Yoast's Breadcrumbs section of the Customizer; breadcrumbs then show on all pages except the front page.

Front page and banner

NewsBook uses its own front-page template whether Settings → Reading shows your latest posts or a static page.

Frontpage Options → General Options: “Check to show Banner Section on front page” (on by default) and “Check to hide blog posts/static page on front page” (off by default).

Frontpage Options → Banner Featured Posts → Featured Posts Category picks the banner's category. The banner shows five posts: the newest large, the next four smaller, all cropped to the theme's 500 × 300 image size. Posts without a featured image get a placeholder image.

Below the banner is the full-width “Front Page: Content Top Section” widget area. The NB: Simple Featured Posts widget is designed for it.

Layout and colours

Appearance → Customize → Design Options → Site Layout chooses Wide Layout (the default) or Boxed Layout.

Design Options → Color Options → “Select Primary Color” (default #0d6efd) changes links, buttons and other accents across the site.

Text is set in Inter, loaded from Google Fonts. There is no font selector; change fonts with Additional CSS or a child theme.

Widgets and widget areas

NewsBook has three widget areas: Sidebar (right-hand column on posts, pages and listings), Header Right, and Front Page: Content Top Section.

It adds two widgets: NB: 728x90 Advertisement (an image with a link) and NB: Simple Featured Posts (latest posts, or posts from one category).

Child themes and custom CSS

Use Appearance → Customize → Additional CSS for colour and spacing tweaks; it survives updates.

The header function newsbook_display_main_header_design_1() and the banner function newsbook_display_banner_section() are wrapped in function_exists checks, so a child theme can define its own versions of them.

This theme loads its main stylesheet with get_stylesheet_uri(). When a child theme is active, that function returns the child theme's style.css, so the parent's style.css is no longer loaded on its own. Your child theme's functions.php therefore has to enqueue the parent stylesheet itself: wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ). If you skip this, the site loses most of its styling the moment the child theme is activated.

Troubleshooting

My header image does not show: NewsBook does not display header images. Use the Header Right widget area or a banner category instead.

The banner shows the wrong posts: it uses the five newest posts in the chosen category, ignoring sticky posts.

For other problems, use the theme's public support forum on WordPress.org.

¿Sigues atascado?

Si algo en NewsBook no se comporta como dice esta página, es un fallo que nos interesa conocer.