Note that there are some explanatory texts on larger screens.

plurals
  1. POwordpress custom page template based on a specific <div>
    primarykey
    data
    text
    <p>I want to know how to set up a custom page template. My website is based on many different widths. example for some pages I use a div called <code>&lt;div class="content-wrap ninecol clearfix"&gt;</code> but for another page I use <code>&lt;div class="text-centered twelvecol clearfix"&gt;</code>.</p> <p>I need to create a template so that I can easy create new pages based on those templates.</p> <p>Below is my static html code that Ive done in dreamweaver.</p> <pre><code>&lt;div class="content-wrap ninecol clearfix"&gt; &lt;!--I want to make a template based on this div so I can just add new text in the future--&gt; &lt;div class="content"&gt; &lt;h1 class="title"&gt;Om oss&lt;/h1&gt; &lt;hr&gt; &lt;div class="entry-content"&gt; &lt;h4&gt;Vilka är Unified Sweden?&lt;/h4&gt; &lt;p&gt;Vi värnar starkt om vår unika företagskultur och ser den som vårt kraftfullaste konkurrensmedel. Inom företaget har vi alltid arbetat hårt för att skapa den stabila grund som vår företagskultur är byggd på. &lt;/p&gt; &lt;p&gt;All personal på Unified Sweden har många års erfarenhet av webbutveckling, programmering, design och kundservice vilket gör oss unika då alla led inom kundbemötandet vet exakt vad ni som företag behöver hjälp med.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>and this is what I came up with.</p> <pre><code> &lt;?php /* Template Name: Test */ ?&gt; &lt;?php get_header(temp); ?&gt; &lt;?php // get_template_part( 'loop', 'index' ); ?&gt; &lt;div class="breadcrumbs"&gt; &lt;?php if(function_exists('bcn_display')) { bcn_display(); }?&gt; &lt;/div&gt; &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt; &lt;?php the_content(); ?&gt; &lt;?php endwhile; endif; ?&gt; &lt;/div&gt;&lt;!-- content-wrap --&gt; &lt;/div&gt;&lt;!-- #content --&gt; &lt;/div&gt; &lt;/div&gt;&lt;!-- .main --&gt; &lt;?php get_footer(); ?&gt; </code></pre> <p>Thank you for any kind of help or support.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload