Centric Remove Page Title Banner

Community Forums Forums Design Tips and Tricks Centric Remove Page Title Banner

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  samw 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #105721

    samw
    Participant
    Post count: 55

    Hi

    I’m using Centric Pro and trying to understand where/how the extra “banner” works

    You can see it here at http://my.studiopress.com/themes/centric/#demo-full

    It shows sub-page 1 or whichever sub page across the top of each page that uses the default template (Bumper??)

    How do you remove this from each page?

    I’m using a static home page and also need to remove this page title “banner” section there

    Where’s the function/code that creates the HomePage Section 1 – the part where you can add a text widget to create the first section of content – can’t find this in functions.php

    Site is local dev

    Thanks


    SEO & Online Marketing Consultant

    Metta3 | G+ | LinkedIn

    #105967

    Tom
    Participant
    Post count: 1012

    The extra “banner” on pages (e.g. http://demo.studiopress.com/centric/columns/) is the page title.

    One way* is to make your own page template to remove the page title, then apply that template as you need. The title will also be removed from the page used for your static home page.

    /*
    Template Name: No-Title
    */
    
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );

    Where’s the function/code that creates the HomePage Section 1

    Look in front-page.php for function centric_home_widgets()

    * As info: Normally you could manipulate the page title using the plugin Genesis Title Toggle – but it fails on Centric due to the unique placement of the title.


    Choose your next site design from over 350 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #105981

    samw
    Participant
    Post count: 55

    Hi

    Thanks for the reply. This does work if you create a custom page template. It wont work in front page.php

    Weirdly, cloning the front-page.php and renaming it e.g. mynewpage also works without adding this code – maybe as its using the default loop with no widgets?

    You seem to know the theme well, dont know if you could help with a few queries before I go much further with this theme

    1. Secondary menu – adding this back even with disabling the shrinking header means it disappears on scrolling – as per the theme design. Is there any way you can get a working second menu?

    2. Creating custom page templates from the home page. Is there a recommended way set these up with the genesis loop?

    I usually follow this http://wpsites.net/web-design/custom-page-template-widgets/ but centric doesnt seem to use a loop?

    For now I have added copied front-page.php and renamed home to my custom page name (au) in this case, but wonder if I need to add a remove genesis action part back in?

    mynew page template
    <?php
    /*
    Template Name: au
    /**
    * This file adds the au Page to the Centric Theme.
    *
    * @author StudioPress
    * @package Centric
    * @subpackage
    */

    add_action( ‘wp_enqueue_scripts’, ‘centric_enqueue_au_scripts’ );
    /**
    * Enqueue Scripts
    */

    From wpsites

    <?php
    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
    add_action( ‘genesis_loop’, ‘magazine_custom_loop_helper’ );
    /*
    Template Name: Custom
    */

    I will ask over on wpsites as well

    Many Thanks


    SEO & Online Marketing Consultant

    Metta3 | G+ | LinkedIn

    #106006

    Tom
    Participant
    Post count: 1012

    This does work if you create a custom page template. It wont work in front page.php

    Arghh. It does work (remove the title) if you set a templated page as a static home page in Settings > Reading.
    In fact, adding a page as a static home page is the only way to make the title banner appear on home.
    (You said you were using a “static home page” :) . A widgetized home page isn’t setup as static.)

    Trying something else… you can achieve something similar by commenting-out lines 80-101 in functions.php. This removes the large page title banner, but leaves the page title more visible. Add commenting-out the “bumper” addition at 3 line in global.js and I think you are close to what you were looking for, but the visual effects are a little off.

    Weirdly, cloning the front-page.php and renaming it e.g. mynewpage also works without adding this code – maybe as its using the default loop with no widgets?

    I’m not quite sure what you did here. Do you still need to work something out?

    Secondary menu – adding this back even with disabling the shrinking header means it disappears on scrolling – as per the theme design. Is there any way you can get a working second menu?

    That’s actually the primary nav menu location (there is no secondary nav menu location in Centric.) , ‘though you can put a menu called “Primary” in that location. Reding the DOM and CSS it can get mixed up.

    This is likely one way to make another menu sticky ( in addition to the custom menu in header right): http://my.studiopress.com/tutorials/sticky-menu/
    There are other similar tutorials.


    Choose your next site design from over 350 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #106109

    samw
    Participant
    Post count: 55

    Hi Tom

    We are talking on the same page (excuse the pun), and in case anyone else is trying to this, here’s the update

    Arghh. It does work (remove the title) if you set a templated page as a static home page in Settings > Reading.
    In fact, adding a page as a static home page is the only way to make the title banner appear on home.
    (You said you were using a “static home page” :) . A widgetized home page isn’t setup as static.)

    Correct. And yes, I am using a static home page. The only way to get a title banner to appear on the home page is via a static page.

    Commenting out the functions section – for centric post title will also work as you mention. Didn’t try the JS for the bumper yet.

    I created a a new page template by copying and renaming front-page.php – without registering the widgets. This also removes the title banner for any pages using this template – a great solution for control on a page by page basis.

    Menus

    I commented out the function that removes the secondary menu – Line 74

    //* Unregister secondary navigation menu
    add_theme_support( ‘genesis-menus’, array( ‘primary’ => __( ‘Primary Navigation Menu’, ‘centric’ ) ) );

    This does enable a secondary menu option but it shows up in an odd position and there’s still the issue of the JS controlling the site header meaning you cant see it.

    I think it’s probably easier to use another theme than try to reintroduce another menu. A shame, but its too limiting with just the one.

    Also ran into issues trying to hook in a utility bar before header so guess the JS doesn’t play nice with certain functions and I really don’t know JS

    Thanks for your help


    SEO & Online Marketing Consultant

    Metta3 | G+ | LinkedIn

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.