This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wpdevhq_get_video(){ | |
global $wpdevhq_videos; | |
$post_id = get_the_ID(); | |
if( empty( $wpdevhq_videos ) ) $wpdevhq_videos = array(); | |
if( isset($wpdevhq_videos[$post_id]) ) return $wpdevhq_videos[$post_id]; | |
$content = get_the_content(); | |
$content = apply_filters( 'the_content', $content ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if IE 7]> | |
<html class="ie ie7" <?php language_attributes(); ?>> | |
<![endif]--> | |
<!--[if IE 8]> | |
<html class="ie ie8" <?php language_attributes(); ?>> | |
<![endif]--> | |
<!--[if !(IE 7) | !(IE 8) ]><!--> | |
<html <?php language_attributes(); ?>> | |
<!--<![endif]--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The Template for displaying all single posts | |
* This amendment is in reference to: https://wordpress.org/support/topic/query-about-ad-placement?replies=7 | |
* | |
* @package Ridizain | |
* @since Ridizain 1.0 | |
*/ | |
get_header(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Full Width Page | |
* | |
* @package wpheadr | |
* @since wpheadr 1.0.6 | |
*/ | |
get_header(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $format = get_post_format(); ?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class('group'); ?>> | |
<h2 class="post-title pad"> | |
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a> | |
</h2><!--/.post-title--> | |
<ul class="post-meta pad group"> | |
<li><?php the_category(' / '); ?></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; | |
$strapvert_blog_query = new WP_Query( | |
array( | |
'paged' => $paged, | |
'post__not_in' => get_option( 'sticky_posts' ), | |
) | |
); | |
?> | |
<?php if ( $strapvert_blog_query->have_posts() ) : ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="header"> | |
<div class="container"> | |
<?php if (themeslug_get_option('logo')) : ?> | |
<div id="logo"> | |
<a href="<?php echo esc_url( home_url() ); ?>"> | |
<img src="<?php echo esc_url( themeslug_get_option('logo') ); ?>" alt="<?php bloginfo('name') ?>"> | |
</a> | |
</div> | |
<?php else : ?> | |
<div id="logo"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Custom functions | |
set_post_thumbnail_size(250, 150, true); // Adjust these to suit your needs | |
add_image_size('single-thumb', 1200, 300, true); // For optimum results use a wider width than the container - You can adjust the heigh to suit your needs | |
function shoestrap_display_images_on_posts() { | |
echo '<div class="entry-thumbnail img-polaroid img-rounded" style="float: left; margin: 0 10px 5px 0;">' ; | |
the_post_thumbnail(); | |
echo '</div>' ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In shoestrap/lib/customizer/hero/functions.php locate the line @ 172 which reads | |
echo '<script>$(".hero-title").fitText();</script>'; | |
// and change it to read | |
echo '<script>jQuery(".hero-title").fitText(1.1, { minFontSize: 48, maxFontSize: 100 });</script>'; | |
// This should resize the title from its original size of 100px to a minimum of 48px at the lowest viewpoint - the 48px is to prevent the title from becoming smaller than the content text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Full-Width | |
*/ | |
?> | |
<?php get_template_part('templates/page', 'header'); ?> <!-- This is the code being refered to OP --> | |
<?php get_template_part('templates/content', 'page'); ?> |