Jump to content

[SOLVED] adding title block and h4 to product pages = featured products


Recommended Posts

Hi -

 

Would anyone have an idea of how to go about tweaking the default theme so that the individual product pages center block could display a title block and the h4, and ... it I am not already asking for the moon, to display the name of the product in the title block?

 

Right now it looks kind of bald and out of place without that title block.

 

Thanks,

 

Brian

Link to comment
Share on other sites

Hi -

 

Thanks for asking!  Basically, with how I have changed the background of my shop, and having moved the breadcrumb up above the center block AND the left and right column, I now have this gap.  Since all of the tops of the modules in the left and right column have a css code of .block .title_block, .block h4   I wanted to have the product page have the same look, on the top of the center block, and move the product name up into that section from where it is now.

 

Hope that helps!

 

Thanks,

 

Brian

Link to comment
Share on other sites

in this case you will need to move <h1> tag with title to the main center column div (by default it is located in pb-left-column). Move it right after <div id="primary_block"> and to h1 tag add class="title_block".

 

 

then it will looks like (this is default theme with simple css modifications)

mkDlwG0.png

 

this is what you're looking for?

  • Like 1
Link to comment
Share on other sites

oh, okay, tried that.  substituting block for clearfix totally messed up the layout so I restored it to clearfix.

 

I cut and paste the code (minus the extra ">" but it just displays as this:

 

class="title_block" Name of Product

 

Thanks so much for your help!  We're close ...

Link to comment
Share on other sites

and even closer:

 

using this code:

 

<div id="center_column" class="block">
    <p class="title_block">{$product->name|escape:'htmlall':'UTF-8'} </p>
<div id="primary_block" class="clearfix">

 

now all I have to do is remove a pesky gap below the title block and above the product

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...