Skip to content

Instantly share code, notes, and snippets.

Atilla Boz great2gether

Block or report user

Report or block great2gether

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@great2gether
great2gether / index.php
Last active Feb 24, 2016
DIVI childtheme index.php file to add a read more link in category & archive
View index.php
<?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 Feb 23, 2016
DIVI childtheme, Page Template: Page with no header
View page-template-noheader.php
<?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 Feb 23, 2016
DIVI childtheme, Page Template: Landingpage - additional code for header.php
View DIVI childtheme, Page Template: Landingpage - additional code for header
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 Feb 23, 2016
DIVI childtheme, Page Template: additional CSS code
View landingpage-css-code.txt
/* 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 Feb 23, 2016
DIVI childtheme, Page Template: Landingpage with no footer & header
View page-template-landingpage.php
<?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 ) : ?>
You can’t perform that action at this time.