Skip to content

Instantly share code, notes, and snippets.

@bigdigital
bigdigital / functions.php
Last active June 15, 2017 16:39
Add custom social icon in The7 theme
//add this code to main or child functions.php file
function presscore_get_social_icons_data() {
return array(
'facebook' => __('Facebook', 'the7mk2'),
'twitter' => __('Twitter', 'the7mk2'),
'google' => __('Google+', 'the7mk2'),
'dribbble' => __('Dribbble', 'the7mk2'),
'you-tube' => __('YouTube', 'the7mk2'),
'rss' => __('Rss', 'the7mk2'),
'delicious' => __('Delicious', 'the7mk2'),
@bigdigital
bigdigital / functions.php
Last active February 5, 2017 09:57
The7 theme breadcrumbs integration under the main menu
//put in in functions.php in main or child theme
//add breadrums to main menu
function custom_breadcrumbs() {
$config = Presscore_Config::get_instance();
// get breadcrumbs
if ( $config->get( 'page_title.breadcrumbs.enabled' ) ) {
$breadcrumbs = presscore_get_page_title_breadcrumbs();
} else {
$breadcrumbs = '';