Home Forums Theme Support Dokan Editing frotpage

This topic is: resolved

This topic contains 9 replies, has 4 voices, and was last updated by  Jason 4 years, 11 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #21504

    Jason
    Member
    Post count: 102

    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

    #21505

    Jason
    Member
    Post count: 102

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

    Should read *Front page*

    #21523

    Mahi
    Member
    Post count: 1555

    its front-page.php

    #21527

    Jason
    Member
    Post count: 102

    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:

    #21621

    Sekander Badsha
    Member
    Post count: 2067

    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!

    #21640

    Jason
    Member
    Post count: 102

    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

    #21642

    Sekander Badsha
    Member
    Post count: 2067

    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!

    #21644

    Jason
    Member
    Post count: 102

    Thanks Sekander.

    Will give it a try ๐Ÿ™‚

    #21736

    David
    Member
    Post count: 9

    @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

    #21784

    Jason
    Member
    Post count: 102

    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 10 posts - 1 through 10 (of 10 total)

The topic ‘Editing frotpage’ is closed to new replies.