Editing frotpage

This topic contains 9 reply and 4 voices, and was last updated by Jason 10 years, 5 months ago
Viewing 9 Posts - 1 through 9 (of 9 total)
Author Posts
June 6, 2014 at 2:34 pm 21504
Jason Hi Support. I would like to experiment with adding catagory icons to the frontpage of the dokan store. We use this shortcode on another Woocommerce store, and the result is nice. Having looked through the pages, I am not sure which page actually makes up the 'home page' so am unsure what to edit. Please let me know what page I need to edit, if I need to add anything to the 'homepage' Thanks
June 6, 2014 at 2:35 pm 21505
Jason Jason

Sorry made a typo in the title and could not edit it!

Should read *Front page*

June 6, 2014 at 8:14 pm 21523
Mahi Mahi

its front-page.php

June 6, 2014 at 8:53 pm 21527
Jason Jason

Hi Mahi

Is there any way then to pull the catagories and assign images to them? Woocommerce allows you to do on a standard WP page using shortcodes but doubt it would work on front-page.php

This is potentially what I would like to reproduce:

June 9, 2014 at 2:32 pm 21621
Sekander Badsha Sekander Badsha

Any feature of WooCommerce would work in our themes any page. Just do what you want.
If you face any difficulties or have any other issue or have any question, don’t hesitate to post again.

Cheers!

June 9, 2014 at 5:21 pm 21640
Jason Jason

Hi Sekander

The short code does work on the other pages within Dokan, but not sure how to make it work on the front-page.php because it is not like the other standard wordpress pages.

I did try to user the correct short code by editing the .php file but did not really think that would work.

Would be nice to have the categories displayed with images on the frontpage like my screen shot so any further advice would be appreciated.

Many thanks

Jason

June 9, 2014 at 5:55 pm 21642
Sekander Badsha Sekander Badsha

If you only want to keep the menu above and the category images in the front page,
1. Take a backup of front-page.php
2. Delete everything between line number 20 to 126.
3. Start writing your short codes from line no 20.
4. Save that file and see the change!

June 9, 2014 at 6:33 pm 21644
Jason Jason

Thanks Sekander.

Will give it a try 🙂

June 11, 2014 at 3:22 am 21736
David David

@jason , is this a plugin that you installed to make the page look like that, or do you put in short codes? etc. I really like the look of it and was interested in creating something similar for my category pages and I am new to wordpress.
Thanks,
David

June 11, 2014 at 2:34 pm 21784
Jason Jason

Hi David

It is a short code from my other online store but because it is based on Woocommerce/WP it works on Dokan too.

I am unable to get it working on the Dokan’home’ page (even with Sekanders instructions) as it is not a standard wordpress page – but you could use it on any other WP page you create.

Here is the code

[product_categories number="12" orderby="name" order="ASC" columns="4" hide_empty="0|1"]

You can play around with the numbers to find the config that best suites your page layout.

The orderby= name places the list in alphabetical order – so don’t worry about changing that 🙂

Good luck

Viewing 9 Posts - 1 through 9 (of 9 total)