d4nl
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Seventeen] Fron page in two columns – TwentyseventeenIt works for the content but doesn’t work for the page title.
Forum: Themes and Templates
In reply to: [Twenty Seventeen] Fron page in two columns – TwentyseventeenI found this code which turns everything to one column:
@media screen and (min-width: 48em) { body.page-two-column:not(.archive) #primary .entry-header, body.page-two-column:not(.archive) #primary .entry-content { float:none; width: 100%;}}and this other one which turns a two column panel into a one column panel and leaves the rest of the web as two column
body.page-two-column:not(.archive).twentyseventeen-front-page #primary .entry-content, body.page-two-column:not(.archive).twentyseventeen-front-page #primary .entry-header, body.page-two-column:not(.archive).twentyseventeen-front-page .panel-content .recent-posts { float: none; width: auto;}I need exactly the opposite. Keep a 2 column panel and transform to a one column web. Any halp in how to modify the code is appreciated
- This reply was modified 5 years, 11 months ago by d4nl.
Forum: Fixing WordPress
In reply to: Using both ‘One Column’ and ‘Two Column’Any ideas?
Forum: Fixing WordPress
In reply to: Using both ‘One Column’ and ‘Two Column’When you go to appeareance/customize/theme_options there is a ‘one column’ or ‘two column’ distribution option for the whole website, on twentyseventeen design.
I would like to leave ‘two column’ distribution activated and then cancel it for some pages. It seems the ‘one/two column’ design is not coded in the page.php file but somewhere else where it affects the whole web.
Forum: Fixing WordPress
In reply to: Using both ‘One Column’ and ‘Two Column’Hi, I created my child theme and page template but I don’t see any one/two column option in the page text.
Please could you assist?
——————————————————————————–
<?php
/*
* Template Name: OneColumn
*
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since Twenty Seventeen 1.0
* @version 1.0
*/get_header(); ?>
<div class=”wrap”>
<div id=”primary” class=”content-area”>
<main id=”main” class=”site-main” role=”main”><?php
while ( have_posts() ) :
the_post();get_template_part( ‘template-parts/page/content’, ‘page’ );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;endwhile; // End the loop.
?></main><!– #main –>
</div><!– #primary –>
</div><!– .wrap –><?php
get_footer();——————————————————————————–
Forum: Fixing WordPress
In reply to: Using both ‘One Column’ and ‘Two Column’Hi, thanks for quick reply!