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
.site-logo-img .custom-logo-link img { | |
max-height: 120px; | |
width: auto; | |
} |
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
if ( ! function_exists( 'vl' ) ) : | |
/** | |
* Replacement for print_r & var_dump. | |
* | |
* @param mixed $var | |
* @param bool $dump. (default: false) | |
*/ | |
function vl( $var, $dump = 0 ) { | |
?> |
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 | |
/** | |
* Level Creativ Theme functions and definitions | |
* | |
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
* | |
* @package Level Creativ | |
* @since 1.0.0 | |
*/ |
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 | |
// Change Default String. | |
function default_strings_callback( $strings ) { | |
$strings['string-comment-title-reply'] = __( 'Hozzászólás', 'astra' ); | |
$strings['string-comment-label-submit'] = __( 'Elküldés »', 'astra' ); | |
$strings['string-comment-label-message'] = __( 'Ide írj..', 'astra' ); | |
$strings['string-single-navigation-next'] = __( 'következő %s', 'astra' ) . ' <span class="ast-right-arrow">→</span>'; | |
$strings['string-single-navigation-previous'] = '<span class="ast-left-arrow">←</span> ' . __( 'előző %s', 'astra' ); | |
$strings['string-blog-meta-author-by'] = __( 'írta', 'astra' ); |
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
.entry-content h1 a:hover, | |
.entry-content h2 a:hover, | |
.entry-content h3 a:hover, | |
.entry-content h4 a:hover, | |
.entry-content h5 a:hover, | |
.entry-content h6 a:hover{ | |
color:#ffc054; | |
} |
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 | |
// Remove `href` from Site Title & Site Logo. | |
add_action( 'wp', 'remove_link_from_site_title_logo', 5 ); | |
function remove_link_from_site_title_logo(){ | |
remove_action( 'astra_masthead_content', 'astra_site_branding_markup', 8 ); | |
add_filter( 'home_url', 'astra_logo_custom_url' ); | |
add_action( 'astra_masthead_content', 'astra_site_branding_markup', 8 ); | |
add_action('astra_masthead_content','astra_remove_logo_custom_url',9); | |
} | |
function astra_logo_custom_url( $url ) { |
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> | |
/** | |
* Static page header title on case-study post types | |
*/ | |
add_filter( 'astra_advanced_header_title', 'page_header_case_study_title' ); | |
function page_header_case_study_title( $title ) { | |
// Add your condition where you want to update the Page Header title. | |
if ( is_singular( array( 'case-study' ) ) ) { |
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 | |
add_filter( 'astra_get_content_layout', 'custom_post_type_content_layout'); | |
// Update the container layout for Custom Post Type same as Blog Post. | |
function custom_post_type_content_layout ( $layout ){ | |
$single_post = astra_get_option( 'single-post-content-layout' ); | |
// Add your CPT instead of newspaper, book. If it's only for one CPT then add just one CPT. | |
if ( is_singular( array( 'newspaper, book') ) ) { | |
$layout = $single_post; | |
} |
OlderNewer