Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.
Open
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: 13 additions & 1 deletion projects-core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,18 @@ function projects_category_image_flush_transient ( $post_id ) {
} // End projects_category_image_flush_transient()
add_action( 'save_post', 'projects_category_image_flush_transient' );

/**
* Adds a widget area for above Projects Archive (below Projects Title, above Columns Loop)
*/
function projects_archive_description_widget() {
register_sidebar( array(
'name' => __( 'Projects Archive Description', 'projects-by-woothemes' ),
'id' => 'projects-by-woothemes-archive-description',
'description' => __( 'Displays before columns loop on Projects Archive view', 'projects-by-woothemes' ),
) );
}
add_action( 'widgets_init', 'projects_archive_description_widget' );

/**
* Enqueue styles
*/
Expand All @@ -435,4 +447,4 @@ function projects_script() {
}
}

}
}