Jigoshop product title

Support Area Forums Foxy Jigoshop product title

Viewing 8 posts - 1 through 8 (of 8 total)
URL to the page in question:
  • Author
    Posts
  • #11092
    Rob
    Participant

    Can I remove the background field from the product title on the product pages. It looks weird to have the page title and the product title on the same space. Maybe make the product title H2? Is that in Jigoshops files or the themes css?

    #11093
    Bill Robbins
    Participant

    Rob,

    It looks like they’ve made some structural changes to the plugin since I last looked at it. You can use either of these CSS snippets to hide the titles:

    Hide Top Title

    
    .single-product h1.title {
    	display: none;
    }
    

    If you hide the top one, you’ll probably want to add this too to give a bit of space at the top:

    
    .single-product .product {
    	margin-top: 30px;
    }
    

    Hide Second Title

    
    .single-product h1.product_title {
    	display: none;
    }
    

    That’ll give you the option to hide either of them.

    #11098
    Rob
    Participant

    Doesn’t work. When I use firebug and checkout the title I want to remove or reduce to h2, I get “h1.product_title.page-title” .

    #11100
    Bill Robbins
    Participant

    That can be done, but I don’t know where specifically to tell you to look. You’ll have to edit Jigoshop’s “jigoshop_template_single_summary” action to change the tag from a h1 to a h2. They do have some documentation on their site on how to do that.

    Outside of that you can make some changes with the single-product.php file that’s in the theme. It calls that action to display the content from the plugin. That h1 tag is created inside it.

    #11101
    Rob
    Participant

    Ok . . . I have experience with woocommerce. I’m a bit nervous about the amount of mods just to make the layouts work with Jigoshop. I tried to use woo and did the mod in the loop but it broke the theme. I have to show my client something this Friday.

    #11103
    Bill Robbins
    Participant

    I found a reference in Jigoshop’s documentation about duplicate titles with their more recent versions which is what appears to be happening here to me. They provided a function that can remove the second one that’s being added via their action.

    To do that, paste this at the bottom of the functions.php file:

    
    function remove_jigoshop_duplicate_title() {
        remove_action( 'jigoshop_template_single_summary', 'jigoshop_template_single_title'  , 5, 2 );
    }
    add_action( 'init', 'remove_jigoshop_duplicate_title' );
    

    With that gone, it’ll be easier to add in a h2 tag, if you’d like to, on the singe product views. If you’ll let me know what you’d like the h2 tag to go, I’ll let you know where to place it.

    As you’re working on this, you’ll also want to make sure that the Jigoshop styles are disabled too. There’s an option in the plugin’s settings that will let you do that.


    I first added in support for Jigoshop about a year and a half ago. Most of the sites using the theme aren’t e-commerce sites. I wasn’t aware that it had changed.

    Our store runs on Woocommerce so I had planned to migrate Foxy to that platform this summer along with a few other changes.

    #11118
    Rob
    Participant

    Thanks . . . just tried it . . .it worked

    #11119
    Bill Robbins
    Participant

    Fantastic. Sorry I missed that. I rolled it into the theme last night.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Jigoshop product title’ is closed to new replies.