News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Not showing header in VM categories layout - Joomla 2.5

Started by sajtfokus, December 26, 2012, 05:09:22 AM

Previous topic - Next topic

sajtfokus

Hi,

I don't have header in Categories layout, but I do have h1 header in Category layout (all settings are the same). I have already checked radio button in Page display options --- "Show page headings", and tried to enter something below in the "Page heading" box, but nothing seems to work.

Any suggestion?
Thanks! :)

vinmax

Quote from: sajtfokus on December 26, 2012, 05:09:22 AM
Hi,

I don't have header in Categories layout, but I do have h1 header in Category layout (all settings are the same). I have already checked radio button in Page display options --- "Show page headings", and tried to enter something below in the "Page heading" box, but nothing seems to work.

Any suggestion?
Thanks! :)

Hi,

Go to the components-> com_vertuemart -> views -> categories -> tmpl-> defaulst.php

Find Remove/comment the bellow lines

62 to 72 lines

Place this lines there

// Category Link
                $caturl = JRoute::_ ('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id);

                // Show Category
                ?>
                <div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
                    <div class="spacer">
                        <h2>
                            <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
                                <?php echo $category->category_name ?>
                                <br/>
                                <?php // if ($category->ids) {
                                echo $category->images[0]->displayMediaThumb ("", FALSE);
                                //} ?>
                            </a>
                        </h2>
                    <>
                <>

This works well.

Thanks
http://shoeg.in, http://maxartkiller.in

sajtfokus

Thanks winmax for your reply!

Sorry, I wasn't clear enough with my question. I want to see my category name as H1 tag. I see that h1 tag in category layout, but not in Categories layout. I don't have problem with displaying H2 tags though.


vinmax

Try this code as following my above post


// Category Link
                $caturl = JRoute::_ ('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id);

                // Show Category
                ?>
                <div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
                    <div class="spacer">
                        <h1>
                            <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
                                <?php echo $category->category_name ?>
                                <br/>
                                <?php // if ($category->ids) {
                                echo $category->images[0]->displayMediaThumb ("", FALSE);
                                //} ?>
                            </a>
                        </h1>
                    </div>
                </div>

sajtfokus

Still not working :(

I've just found out that besides headers in categories layout, custom page title and category description are not working aswell. I just have pictures of subcategories lined-up at the top of the page, nothing else.