Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ function setupshop_script_enqueue() {
);
}

/** ------- my additions below --------
* Register sidebars and widgetized areas.
*
*/
/*
* ------- my additions below --------
* Register sidebars and widgetized areas.
*/

add_action( 'widgets_init', 'setupshop_widgets_init' );
function setupshop_widgets_init() {
register_sidebar( array(
Expand All @@ -47,4 +48,9 @@ function setupshop_widgets_init() {
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>', ) );
}

function projects_metabox() {
add_meta_box( get_post_ID(), $projects, 'projects_metabox', get_post_meta(), 'normal', null );
}

?>
1 change: 1 addition & 0 deletions page-about.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<div class="text">
<?php the_content(); ?>
</div>

</article>
<?php
endwhile;
Expand Down
45 changes: 45 additions & 0 deletions page-dynamic-features.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
/*
* Template Name: Page-Dynamic-Features
* Description: Collection of random features
*/
?>

<?php get_header(); ?>

<div class='main-section'>

<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
?>
<article <?php post_class(); ?>>
<?php the_title('<h1 class="entry-title">','</h1>' ); ?>

<?php
if( has_post_thumbnail() ):
?>
<div class="thumbnails">
<?php the_post_thumbnail('thumbnail'); ?>
</div>
<?php
endif;
?>

<small>
<?php the_category(); ?>
</small>


<div class="text">
<?php the_content(); ?>
</div>

</article>
<?php
endwhile;
endif;
?>
</div>

<?php get_footer(); ?>
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ p {
.type-page {
background-color: #F7F7F7;
padding-top: 2rem;
margin-top: 8rem;
margin-top: 2rem;
}

.type-page h2 {
Expand Down