Jigoshop product title
Support Area › Forums › Foxy › Jigoshop product title
Tagged: foxy, Jigoshop, product title
- This topic has 7 replies, 2 voices, and was last updated 12 years, 6 months ago by
Bill Robbins.
-
AuthorPosts
-
May 8, 2013 at 15:49 #11092
Rob
ParticipantCan 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?
May 8, 2013 at 16:05 #11093Bill Robbins
ParticipantRob,
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.
May 8, 2013 at 16:25 #11098Rob
ParticipantDoesn’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” .
May 8, 2013 at 16:31 #11100Bill Robbins
ParticipantThat 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.
May 8, 2013 at 16:58 #11101Rob
ParticipantOk . . . 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.
May 8, 2013 at 17:29 #11103Bill Robbins
ParticipantI 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.
May 9, 2013 at 16:13 #11118Rob
ParticipantThanks . . . just tried it . . .it worked
May 9, 2013 at 16:35 #11119Bill Robbins
ParticipantFantastic. Sorry I missed that. I rolled it into the theme last night.
-
AuthorPosts
- The topic ‘Jigoshop product title’ is closed to new replies.
