Wordpress theme written for Mikkel Karlsen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Nikolaj Fabricius-Bjerre 662f42286d feat: add css classes ".margin-{bottom,top}-{10,20,30,40,50,60}" 1 month ago
css feat: add css classes ".margin-{bottom,top}-{10,20,30,40,50,60}" 1 month ago
images added linked in footer 3 years ago
js feat: add gtag xhr on booking success 2 years ago
scss feat: add css classes ".margin-{bottom,top}-{10,20,30,40,50,60}" 1 month ago
.gitignore added gitignore 3 years ago
404.php added some wpml support 3 years ago
README.md feat: add css classes ".margin-{bottom,top}-{10,20,30,40,50,60}" 1 month ago
archive.php added archive.php and custom post "Artikel" 3 years ago
article-overview.php added animations on blog overview 3 years ago
footer.php fix: modal text 2 years ago
front-page.php fix: use large thumbnails for featured images 1 year ago
functions.php feat: add basic excel export api endpoint 1 month ago
header.php refactor: set navbar in fluid container 3 years ago
index.php frontpage and basic setup 3 years ago
package-lock.json fix: improve CSS compatability with newer wordpress versions 1 month ago
package.json feat: add gtag xhr on booking success 2 years ago
page.php fix: use large thumbnails for featured images 1 year ago
screenshot.jpg added theme screenshot 3 years ago
single.php fixed single.php (support posts) 3 years ago
style.css corrected authors 3 years ago

README.md

Mikkel Karlsen wordpress theme

Wordpress theme written for Mikkel Karlsen

Install node modules (only for development)

npm install

Watch scss-files

npm run scss

Minify js files

npm run minify


Wordpress configuration


Groups

  • When editing pages or posts, everything should be put in groups

  • A group should have at least one class light or dark (background)


Classes

  • All elements including (~ especially) groups can have following classes (these only works on desktop)

    • .more-padding-top
    • .less-padding-top
    • .more-padding-bottom
    • .less-padding-bottom
    • .more-margin-top
    • .less-margin-top
    • .more-margin-bottom
    • .less-margin-bottom


  • All elements can have the following classes (works everywhere):

    • .no-padding-top
    • .no-padding-bottom
    • .no-margin-top
    • .no-margin-bottom
    • .margin-top-10
    • .margin-bottom-10
    • .margin-top-20
    • .margin-bottom-20
    • .margin-top-30
    • .margin-bottom-30
    • .margin-top-40
    • .margin-bottom-40
    • .margin-top-50
    • .margin-bottom-50
    • .margin-top-60
    • .margin-bottom-60
    • block - display: block, width 100%, some default margin
    • btn btn1 - creates the beautiful yellowish button


  • Autoptimize

  • Contact Form 7

  • Contact Form 7 Extension For Mailchimp

  • GA Google Analytics

  • Lazy Load for Videos

  • Schema & Structured Data for WP & AMP

  • WebP Express (requires packages cwebp and php-gd)

  • Wordfence Security

  • WP Mail SMTP

  • WP Super Cache

  • Yoast SEO


Contact Forms 7 newsletter example

<section class="subscribe_newsletter">
<div class="container">

<div class="grid">
    <div>
        <h2>Modtag nyheder</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius tortor nibh, sit amet tempor nibh finibus et.</p>
    </div>
    <div>
        [email* email-116 class:block placeholder "Skriv din email"][submit class:block "Tilmeld"]
    </div>
</div>

</div>
</section>


Contact Forms 7 booking example

<div class="booking-grid">
    <div>
        [text* text-884 placeholder "Navn"][email* email-890 placeholder "Email"][text* text-884 placeholder "Telefonnr."]
    </div>
    <div>
        [textarea* textarea-568 placeholder "Beskriv dit arrangement bedst muligt og husk gerne dato, tid, adresse og antal deltagere"]
    </div>
</div>
<div>
    [submit class:btn1 "Send forespørgsel"]
</div>


Custom post type: Articles

  • Shortcode is used for blog-overview, due to wordpress’ missing customization options required on category/archive pages
  • To get the article blog overview, use shortcode [get_article_overview]