View section-clients.php
<?php
$id = get_theme_mod( 'onepress_clients_id', 'clients' );
$title = get_theme_mod( 'onepress_clients_title');
$subtitle = get_theme_mod( 'onepress_clients_subtitle', __('Have been featured on', 'onepress-plus' ));
$desc = get_theme_mod( 'onepress_clients_desc' );
?>
<?php if ( ! onepress_is_selective_refresh() ){ ?>
<section <?php if ( $id ) { ?>id="<?php echo esc_attr( $id ); ?>" <?php } ?> class="<?php echo esc_attr( apply_filters( 'onepress_section_class', 'section-padding section-clients onepage-section', 'clients' ) ); ?>">
<?php } ?>
View section-projects.php
<?php
$onepress_projects_id = get_theme_mod( 'onepress_projects_id', 'projects' );
$onepress_projects_title = get_theme_mod( 'onepress_projects_title', __('Highlight Projects', 'onepress-plus' ));
$onepress_projects_subtitle = get_theme_mod( 'onepress_projects_subtitle', __('Some of our works', 'onepress-plus' ));
$is_ajax = get_theme_mod( 'onepress_project_ajax', 1 );
$desc = get_theme_mod( 'onepress_projects_desc' );
?>
<?php if ( ! onepress_is_selective_refresh() ){ ?>
<section <?php if ( $onepress_projects_id ) { ?>id="<?php echo esc_attr( $onepress_projects_id ); ?>" <?php } ?> class="<?php echo esc_attr( apply_filters( 'onepress_section_class', 'section-padding section-projects onepage-section', 'projects' ) ); ?>">
View footer.php
View functions.php
function onepress_site_logo(){
$classes = array();
$html = '' ;
$classes['logo'] = 'no-logo-img';
if ( function_exists( 'has_custom_logo' ) ) {
if ( has_custom_logo()) {
$classes['logo'] = 'has-logo-img';
$html .= '<div class="site-logo-div">';
$html .= get_custom_logo();
$html .= '</div>';
View woocommerce.php
<?php
/**
* Custom Woocommerce shop page.
*
* @package WPCharming
*/
global $woocommerce;
$page_layout = get_post_meta( woocommerce_get_page_id('shop'), '_wpc_page_layout', true );
$hide_page_title = get_post_meta( woocommerce_get_page_id('shop'), '_wpc_hide_page_title', true );
View woocommerce.php
<?php
/**
* The template for displaying all pages WooCommerce page.
*
* @package Screenr
*/
get_header();
?>
View functions.php
add_filter( 'get_the_archive_title', function ($title) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() || is_tax() ) {
$title = single_tag_title( '', false );
View functions.php
/**
* More header after hero section for front page only.
*
*/
function oneify_move_header(){
if ( is_page_template( 'template-frontpage.php' ) ) {
remove_action( 'onepress_site_start', 'onepress_site_header' );
add_action( 'onepress_after_section_hero', 'onepress_site_header' );
}
}
View functions.php
function onepress_site_header(){
?>
<header id="masthead" class="site-header" role="banner">
<div class="container">
<div class="site-branding">
<?php
onepress_site_logo();
?>
</div>
<!-- .site-branding -->
View functions.php
remove_filter('excerpt_more', 'onepress_custom_excerpt_length');
function wpdocs_custom_excerpt_length( $length ) {
return 10;
}
add_filter( 'excerpt_length', 'wpdocs_custom_excerpt_length', 999 );