+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: How to change the comma in category?

Hybrid View

  1. #1

    How to change the comma in category?

    Dear Flynax Dev.,

    How to I change the comma(',') that separates sub cat (DVD, Other Formats, VHS) show in the picture, to another sign, for example "|"
    Screen Shot 2015-12-24 at 8.12.58 PM.png

    I have looked into the category.tpl and category_block.tpl but can't find anything.
    Please advice

    And merry xmas to you too.

  2. #2
    UP for a new week.

  3. #3
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    http://yoursite.com/templates/genera.../css/style.css

    go to your syle.css (line 208??) and look for this

    .sub_categories {
    padding: 9px 20px 0 0;
    color: #654234;

    ad change it to this / below, this will white out the back ground and make it disapear and leave the correct gap ( add colour code to suit your background / use a colour picker in tolls if not sure)

    .sub_categories {
    padding: 9px 20px 0 0;
    color: #ffffff;

  4. #4
    Quote Originally Posted by Pete Young View Post
    http://yoursite.com/templates/genera.../css/style.css

    go to your syle.css (line 208??) and look for this

    .sub_categories {
    padding: 9px 20px 0 0;
    color: #654234;

    ad change it to this / below, this will white out the back ground and make it disapear and leave the correct gap ( add colour code to suit your background / use a colour picker in tolls if not sure)

    .sub_categories {
    padding: 9px 20px 0 0;
    color: #ffffff;
    Hi Pete,

    Thank you so much for your suggestion. But I'm planning to change the comma ',' to another sign like '|' or may be '<br/>' so each sub will be on 1 line only. I thought I could change it in category_block.tpl but no luck. I dont think changing in css could make the change with <br/> though. But I appreciate your help.

  5. #5

    Lightbulb Subcategory divider through config

    Hello,

    Insert the following code below into your Admin Panel > Database
    Code:
    Only registered members can view the code.
    Result of this code lines: (Admin Panel > Configurations >> General)


    Next stage: using the config in template.

    Go to your template files: /tpl/blocks/categories_block.tpl

    Find something like this:


    and replace to:


    Save and close this file.
    It's done.
    Last edited by Alex; December 28, 2015 at 05:56 AM. Reason: images updated

    Other than that happy coding...
    Flynax Technical Department

  6. #6
    Hi Alex,

    Thank you so much for reaching out for us. But you forgot to attach the file. When you say

    "Find something like this:

    and replace to:

    "
    It's blank, I cant see what did you put in there. Would you please revise
    Thank you

  7. #7
    I'm sorry for that, the post has been updated.

    Other than that happy coding...
    Flynax Technical Department

  8. #8
    Quote Originally Posted by Alex View Post
    I'm sorry for that, the post has been updated.
    Hi Alex,

    Thank you so much for your fast response. I however couldn't find the code that you suggest to change. Please check my categories_block.tpl file. I'm using general_wide template.
    https://app.box.com/s/2setbvrdhxs8d634p2m4fp1f81l9itx5

  9. #9
    For *_wide templates the separator in CSS [style.css] (as said Pete)



    Change the content value to as you like.
    Last edited by Alex; December 28, 2015 at 07:22 AM.

    Other than that happy coding...
    Flynax Technical Department

  10. #10
    Quote Originally Posted by Alex View Post
    For *_wide templates the separator in CSS [style.css] (as said Pete)



    Change the content value to as you like.
    Ah how careless of me for not seeing it. I have looked into it and turn out Pete was right. My bad.
    So would it be possible if I want to use <br/>, to separate each sub in one line?

+ Reply to Thread