can i insert different image background for left menu?

raja

Avatar: raja

2013-02-20 07:58

can i insert image button as product categories name in menu 3(left menu) instead of text?

» Quick.Cart v6.x

braj

interkob

Avatar: interkob

2013-02-20 08:16

There is no way to insert an image through admin side. But you can insert images and links directly in the template. For example, open templates/default/_header.php and paste the code in the column area:

<a href="your-link"><img src="your-image-button" alt="My button"></a>

In this way you can add more buttons as images. Also you can make these buttons by using css and page id, but this way would be more difficult.

raja

Avatar: raja

2013-02-20 09:27

where to use the above code? plz give me full idea

braj

raja

Avatar: raja

2013-02-20 09:30

can i add the content for page as privious from admin page?

braj

interkob

Avatar: interkob

2013-02-20 10:11

For instance, under <div id="column">

So that would be:

<div id="column">
<a href="http://opensolution.org"><img src="first-button.gif" alt="My button"></a>

You can add the content via admin, but you can't generate images. So add content and insert the links with images to that content page. Don't forget to upload your images.

Maybe you have different vision. Then you can show an image how do you imagine your template to look like.

raja

Avatar: raja

2013-02-20 11:20

actually i want to add different background color or different image background in product categories... and i ve problem where to add it no idea...

braj

interkob

Avatar: interkob

2013-02-20 11:37

Oh, then ok. Do the following:

1. Open core/pages.php and replace the code:

$content .= '    <li class="l'.( ( !empty( $GLOBALS['config']['basket_page'] ) && $aData['iPage'] == $GLOBALS['config']['basket_page'] ) ? 'Basket' : ( ( $i == ( $iCount ) ) ? 'L'$i ) );


With:
$content .= ' <li id="id'.$aData[iPage].'" class="l'.( ( !empty( $GLOBALS['config']['basket_page'] ) && $aData['iPage'] == $GLOBALS['config']['basket_page'] ) ? 'Basket' : ( ( $i == ( $iCount - 1 ) ) ? 'L': $i + 1 ) );

Now each of your pages has its ID.

2. Open templates/default/style.css and insert the code, for example:

#menu3 li#id6 {background:#f00;}
#menu3 li#id12 {background:#f2f2f2;}
...

Use #id and your category id number to have a different style.

raja

Avatar: raja

2013-02-20 12:03

but it didn't work in css file

braj

interkob

Avatar: interkob

2013-02-20 12:07

It works. Just insert correct ID instead of #id6. Write #idYourNumber

raja

Avatar: raja

2013-02-20 12:25

is it is needed to remove all previous style under LEFT MENU of menu3?

braj

interkob

Avatar: interkob

2013-02-20 12:36

no, just add new styles below

raja

Avatar: raja

2013-03-16 06:38

how to change background of sub page of left menu?

raj

Back to top
about us | contact