Page Publishing

Uma alternativa ao Page Publishing - outro método é usar CSS para remover os elementos indesejados em um Tópico Regular, preservando toda a funcionalidade (ou seja, Javascripts em Componentes de Tema instalados e estilo CSS, etc.)

Tags no composer podem ser usadas para aplicar seletivamente formatação a um Tópico específico.

Por exemplo, no meu site, consigo isso colando o seguinte CSS no CSS do meu tema na aba Comum:

/********************** REMOVER COISAS DO LAYOUT USANDO TAGS *************** /

.tag-no-header {
    .d-header {
        display: none !important;
    }
    #post_1 nav.post-controls .actions button.edit {
    top: 0px !important;
    }
    .topic-body h1 {
        padding-top: 0 !important;
    }
}

.tag-no-sidebars {
    aside.sidebar {
        display: none !important;
    }
}

.tag-no-category {
    .topic-category {
        display: none !important;
    }
}

.tag-no-timeline {
    .topic-navigation {
        display:none !important;
    }
    .container.posts {
        grid-template-columns: 100% !important;
    }
    .topic-body {
    width: 100% !important;
    }
}

.tag-no-post-links {
    .post-links-container {
        display:none !important;
    }
}

.tag-no-box-shadow {
    .topic-body {
        width: 100% !important;
        border-top: none !important;
        box-shadow: none !important;
        background-color: unset !important;
    }
}

.tag-no-topic-meta-data {
    .topic-meta-data {
        display:none !important;
    }
}

.tag-no-side-margins {
    .wrap {
        max-width: unset !important;
        padding: 0 10px !important;
    }
    .content-wrapper {
        display: block !important;
    }
    #main-outlet-wrapper {
        width: 100% !important;
    }
    .topic-body {
        width: 100% !important;
    }
}

.tag-no-footer-buttons {
    #topic-footer-buttons {
        display: none !important;
    }
}

Então eu crio Tags que posso aplicar seletivamente a Tópicos, combinando os seletores CSS no código acima…

no-header
no-sidebars
no-category
no-timeline
no-post-links
no-box-shadow
no-topic-meta-data
no-side-margins
no-footer-buttons


Então aqui estão as duas versões diferentes do mesmo Tópico…

Antes (sem Tags aplicadas):

Depois (Todas as Tags aplicadas) - que também posso incorporar como um iFrame em outros Posts no meu site :nerd_face::

24 curtidas