Okay
  Public Ticket #840879
editor hidden
Closed

Comments

  •  1
    Rikard started the conversation

    Hi, i need to add something to the loop and wanted to get to it via the appearance / editor. but it seems to be hidden and not even a direct link gets me there (i don't have permissions). how do i do that?

    the thing i want to do is have the posts categories show up, so that i can style them differently.

  •  1,558
    Laborator replied

    Hi Rikard,

    You will need to change the file permissions from the FTP or ask someone who manages your server to do this as when installing WordPress you have had these settings as default.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  1
    Rikard replied

    ok, thanks. found a way to get to the php files from the hosting interface. i'm using the "post grid" element on a number of pages and wanted to style the posts according to category. thought of adding <div <?php post_class(); ?> > to do that. but where should i add it?

  •  1,558
    Laborator replied

    Hi Rikard,

    If you want to style the posts depending on the category the best is to use Custom CSS in that page where you're using the Post Grid, each page has it's own Custom CSS area where you can customize the elements.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  1
    Rikard replied

    sorry, i don't get it...

    i want to style all posts e.g. that have the category "film" to have a yellow background – on all pages that they are displayed on. and eg all posts that have the category "animation" to be blue. and so on.

  •  1,558
    Laborator replied

    Hi Rikard,

    Can you post your site URL so we can check how we can do it in an easier way :)

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •   Rikard replied privately
  •  1,558
    Laborator replied

    Hi Rikard,

    I changed the posts of Film category, I added a class to the Post Grid element and named it films-category then I added a CSS code in the Custom CSS, you can use the same for any other category.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  1
    Rikard replied

    thanks, i don't think that you quite understood what i wanted to do... i want to have eg "post 2" in the grid with yellow background, "post 3" with a blue background – on all pages where i need the posts grid.

    this is how i thought of doing it

    - i create categories for the background colors, so a film would have the categories film and yellow

    - in the custom css i would then define all posts with that category to have a yellow background

    the problem - of course - is that the page doesn't "display" the categories, or even post id's. i was googling around for this and got the idea from articles like this https://codex.wordpress.org/Function_Reference/post_class

     i could even style them manually if there's an easy way to do that.

  •  1,558
    Laborator replied

    Hi Rikard,

    Now I get what you're trying to do, that's not possible because the Visual Composer element is not giving any class to the child elements and it's hard to refer to any of the elements manually without any class.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  1
    Rikard replied

    ok, thanks anyway.