A guide to styling and making Dispatch your own

| |

Dispatch is a Magazine style blog for your new website. Each of its features have been designed and built using GeneratePress and WP Show Posts. As expected of a Flint Skin Site it uses Custom CSS. At over 350 lines it is recommended, but not necessary, to move the Additional CSS to a Child Theme style sheet. So lets get onto making it your own.

WP Show Posts

Without WP Show Posts plugin, this Site wouldn’t exist. Another awesome product from Tom Usborne, WP Show Posts does exactly what the title says. Anywhere and everywhere in the case of Dispatch. So much so there is a dedicated page to explain its uses here.


Social Icons – Desktop

The Lightweight Social Icons widget has been added to the Header Widget. It only displays on Desktop as the Widget has the hide-on-mobile and hide-on-tablet-classes .

Social Icons – Tablet and Mobile

They are also displayed in the Slideout Navigation. Using the Slideout Widget.

Social Icon Colors

Colors are changed within the widget.


Pagebuilders

Can I use a page builder with Dispatch?

Yes, you can if you wish. The only rule is that you need to use the Default Template for your Pages and Posts. To create a full width blank canvas template then follow these steps:

  1. Appearance > Elements > New Layout
  2. Disable Content Title
  3. Set Page Builder Container to Contained or Full Width
  4. Set Display Rules to the Pages you need a Blank canvas on.

How do I change colors?

The majority of Volumes colors are controlled by the Customizer. There are some Elements that are part of Volumes features that require CSS. This article covers where to make those changes:

How to change the Custom Colors


Logo and Site Identity

Dispatch does not have a logo, just the Site Title.
You can change the Site Branding or add a logo via the Customizer > Site Identity


Page Layout – Container Margin

Dispatch uses the Customizer > Layout > Container > Separate Containers option.
To maintain horizontal alignment the left and right padding has been removed on the desktop.

The following CSS adds left and right margin to offset the padding.


@media (min-width: 769px) {
    body {
        margin: 0 30px;
    }
}


Navigation

Dispatch uses the Primary Navigation for the main menu and Secondary Navigation displays post categories.The majority of their layout and styling is controlled by the Customizer. With these exceptions:

Menu underline on hover

The animated underline is set using this CSS. Changing the color of the bar is covered here:

How to change the Custom Colors

Secondary Navigation Location

The Secondary Nav is placed using a Hook Element as opposed to the Customizer, which is set to No Navigation. This is so the secondary navigation is dynamically placed. You will notice it doesn’t appear on the posts. It also appears below the Header Element on the front page.

More information be found on that here:

Hooks – Custom Theme Elements

I want to use the Customizer to control the navigation

Simply delete ( or Quick Edit > Set to Draft and Save ) the Magazine Grid header element to revert to the normal customizer controls.


Blog

The majority of the Blog settings are controlled within the Customizer > Layout > Blog. Of course it wouldn’t be a Flint Skin site if some custom customization wasn’t done. These comprise of re-ordering the post meta layout and fixing the height of the featured image.

To maintain a consistent style the Blog posts have been styled to match the WP Show Posts Plugin. You can read more here:

https://gpsites.co/dispatch/wp-show-posts/


Single Post – Sidebar and No Sidebar

The default setting ( in the Customizer ) for the single post includes the right hand sidebar. If the sidebar is removed, like it is on this post, then the content container is narrowed for easier reading.

Single posts container without sidebar are resized by this CSS:


body.no-sidebar .site-content {
    max-width: 720px; /* Adjust the size to suit */
    margin-left: auto;
    margin-right: auto;
}

Options to remove the Sidebar on a post by post basis can be done using either the disable elements module or the layout module:

Layout Metabox Overview

Layout Element Overview


Page Heros – Header Elements

The Hero Headers are built using the Elements module. Volumes Hero Headers are covered here:

Page and Post Heroes

Magazine Grid – Front Page

A custom WP Show Posts Grid displaying 5 posts.
More details on creating your own list for this grid and the ones used in content are covered here …… WWWW ……

The Header Element contains just the WP Show Posts Shortcode. And requires these two Element Classes: wpsp-grid wpsp-card

Single Post

The single post uses template tags for dynamically displaying the Post Title, Category, Date and Author. The Post Title is set as the H1 and it uses the featured image for its background.

Background Image Inset Shadow

To improve readability an inset shadow is cast on to the background image. This uses the Element Classes field. To add the shadow to a new page header just add the overlay class in that field. Likewise you can remove it from this Header Element to disable the shadow.

Archives Header

This simple header places the archive title above the secondary navigation.

MAS NOTICIAS RELACIONADAS

Cómo quitar el punto de acceso único de la red Nest Wifi / Google Wifi

Cómo quitar el punto de acceso único de la red Nest Wifi / Google Wifi

A continuación, le indicamos cómo puede eliminar un solo punto de acceso Google Wifi o Nest Wifi de su red ...
Leer Más
Descargar y Instalar Windows 10 Gratis

Descargar y Instalar Windows 10 Gratis

Durante muchos años para instalar Windows teníamos que realizar un montón de pasos y procedimientos, disponer de una serie de ...
Leer Más
mejores dongles HDMI con YouTube y Netflix

Los mejores dongles HDMI con YouTube y Netflix para su televisor antiguo [Lista]

Aquí hay una lista de los mejores y más económicos dongles HDMI para su televisor antiguo que cuentan con YouTube, ...
Leer Más
Cómo reemplazar Siri con el Asistente de Google en iPhone, iPad

Cómo reemplazar Siri con el Asistente de Google en iPhone, iPad

Sí, puede reemplazar Siri con el Asistente de Google en su iPhone y iPad. Hoy te mostraremos cómo hacerlo en ...
Leer Más
Descargue nuevos fondos de pantalla de Android

Descargue nuevos fondos de pantalla de Android 12 para cualquier dispositivo ahora mismo

Lo leíste absolutamente bien. Puede descargar los nuevos fondos de pantalla de la próxima actualización de Android 12 para cualquier ...
Leer Más
Cómo transformar el iPhone en el teléfono de Google definitivo

Cómo transformar el iPhone en el teléfono de Google definitivo [Guía]

¿Quieres transformar tu iPhone en un teléfono de Google completo? A continuación, le mostramos cómo puede hacerlo siguiendo unos sencillos ...
Leer Más
Cómo configurar o eliminar una alarma en HomePod / HomePod mini

Cómo configurar o eliminar una alarma en HomePod / HomePod mini

Así es como puede configurar una alarma en HomePod o HomePod mini usando Siri. También le mostraremos cómo eliminar una ...
Leer Más
PUBG: NEW STATE anunciado como 'La próxima evolución de Battle Royale

PUBG: NEW STATE anunciado como ‘La próxima evolución de Battle Royale en dispositivos móviles’, que se lanzará este año

KRAFTON, Inc. anunció hoy PUBG: NEW STATE como la 'próxima evolución de Battle Royale en dispositivos móviles'. El juego se ...
Leer Más
disipador Sculptor de NFortec

Mejora la temperatura de tu CPU con el disipador Sculptor de NFortec

NFortec acaba de presentar su nuevo disipador para procesadores gaming, tanto de Intel como de AMD, Sculptor. El cual hará ...
Leer Más
Anterior

Using WP Show Posts

Adobe finaliza oficialmente hoy el soporte de su reproductor Flash que define la era

Siguiente