badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Grey bar under the menu

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #43090
    Tamara
    Participant

    Hello,

    I have a question about the light grey bar under the menu. My website is: http://www.tamarawitjes.com/testwebsite. This bar is shown on the Blog Template and the Contact Template, but I would also like to add the grey bar to the Standard Templates (portfolio, publications, shop, services).

    Thanks and regards,

    Tamara

    #43109

    Hi Tamara,

    Actually we have designed our theme in this way. If we add page title then the page title will appear in two place. So in default page we have removed the page title. If you want to have page title then it needs code customization. Create a child theme and then make a customization on it.
    You need to add a child theme folder inside the theme folder (wp-content/themes/) and name that folder name to attitude-pro-child.

    Create 2 files. style.css and functions.php
    Under style.css file add below code

    /*
    Theme Name: Attitude Pro Child Theme
    Theme URI: https://www.themehorse.com/themes/attitude-pro
    Author: Theme Horse
    Author URI: https://www.themehorse.com
    Description: Attitude Pro is the Premium version of popular free theme Attitude. It is a clean, superflexible and responsive retina ready WordPress theme. Suitable for Business, Blogging, Portfolio, Photography and any type of sites. It comes with tons of options so you can modify layout, styling, colors and fonts directly from within the backend and create the Website that you want in no time.
    Version: 3.0.4
    License: GNU General Public License, version 3 (GPLv3)
    License URI: http://www.gnu.org/licenses/gpl-3.0.txt
    Tags: white, light, blue, one-column, two-columns, three-columns, left-sidebar, right-sidebar, flexible-width, custom-menu, custom-background, custom-header, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, sticky-post
    Text Domain: attitude
    Template: attitude-pro
    */
    
    @import url("../attitude-pro/style.css"); 
    .page .entry-title {
        display: none;
    }

    and under functions.php file add below code

    <?php
    
    if ( ! function_exists( 'attitude_header_title' ) ) :
    /**
     * Show the title in header
     *
     * @since Attitude Pro 1.0
     */
    function attitude_header_title() {
    	if( is_archive() ) {
    		$attitude_header_title = single_cat_title( '', FALSE );
    	}
    	elseif( is_404() ) {
    		$attitude_header_title = __( 'Page NOT Found', 'attitude' );
    	}
    	elseif( is_search() ) {
    		$attitude_header_title = __( 'Search Results', 'attitude' );
    	}
    	elseif( is_page_template()  ) {
    		$attitude_header_title = get_the_title();
    	}
    	else {
    		$attitude_header_title = get_the_title();
    	}
    
    	return $attitude_header_title;
    
    }
    endif;
    	?>

    HOpe this may help you
    Thank you!

    #43137
    Tamara
    Participant

    It worked! Thank you very much for your help 🙂

    Regards,

    Tamara

    #43147
    Tamara
    Participant

    Hello,

    I created the child theme and the site looks like it should. But when I try to open the customizer, I get the error message: server error 500. Do you have any advice how to fix this? Could it be because of the child theme I activated?

    Thanks and regards,

    Tamara

    #43151

    Hi Tamara,

    No, there may be other issues. Once you try deactivating the child theme and activate only the parent theme and check whether the same problem occurs or not. Creating the child theme must not occur the server error.

    Thank you!

    #43160
    Tamara
    Participant

    Thanks for your reply. The problem is solved, a plugin I installed was the cause of the problem.

    Regards,

    Tamara

    #43265

    That’s great Tamara

    Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.