Skip to content

Instantly share code, notes, and snippets.

View great2gether's full-sized avatar

Atilla Boz great2gether

View GitHub Profile
@great2gether
great2gether / gist:cefdc3f05c3e1b1e7a25940699768285
Last active August 24, 2020 01:36
Font Awesome include link
{extends file="parent:frontend/index/header.tpl"}
{block name="frontend_index_header_css_screen"}
{$smarty.block.parent}
{* If needed: Install Google Fonts and Font Awesome and link from here *}
<link href="{$Shop->getHost()}/engine/Shopware/Plugins/Community/Frontend/GreatFashionPassionTheme/Themes/Frontend/FashionPassion/frontend/_public/src/fonts/fontawesome/css/all.css" rel="stylesheet">
{/block}
@great2gether
great2gether / index.php
Last active February 24, 2016 03:16
DIVI childtheme index.php file to add a read more link in category & archive
<?php get_header(); ?>
<div id="main-content">
<div class="container">
<div id="content-area" class="clearfix">
<div id="left-area">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
$post_format = et_pb_post_format(); ?>
@great2gether
great2gether / page-template-noheader.php
Last active February 23, 2016 06:00
DIVI childtheme, Page Template: Page with no header
<?php
/*
Template Name: No Header
*/
get_header();
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() ); ?>
<div id="main-content-noheader">
@great2gether
great2gether / DIVI childtheme, Page Template: Landingpage - additional code for header
Created February 23, 2016 03:41
DIVI childtheme, Page Template: Landingpage - additional code for header.php
if ( is_page_template( 'page-template-blank.php' ) ) {
return;
}
// Anpassung G2G: Es wird geprüft, ob das no Sidebar no Header Template aufgerufen wird
if ( is_page_template( 'page-template-landingpage.php' ) ) {
return;
}
@great2gether
great2gether / landingpage-css-code.txt
Last active February 23, 2016 03:21
DIVI childtheme, Page Template: additional CSS code
/* Abstand nach oben verringern auf Landingpage */
body.page-template-page-template-landingpage-php #page-container {
padding-top: 0 !important;
}
.landingpage {
font-size: 15px;
text-align: justify;
padding: 10px 2%;
}
@great2gether
great2gether / page-template-landingpage.php
Last active February 23, 2016 02:28
DIVI childtheme, Page Template: Landingpage with no footer & header
<?php
/*
Template Name: Landingpage, no sidebar & header
*/
get_header();
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() ); ?>
<div id="main-content-landingpage">
<?php if ( ! $is_page_builder_used ) : ?>