This topic has 16 replies, 2 voices, and was last updated 10 years by Nunivo.

  • Author
  • #57108
     Nunivo
    Participant

    Greetings,

    I am using the pinterest style layout, and i was wondering how to achieve the same as demo.
    – Testimonial have blue color + [ ]
    – post x has colour purple
    – post from page x has color blue
    and so on (in my case i have 4 total).

    Is there a way to enter PHP code to fetch site numbers?

    Thank you.

    #57128
     sharmstr
    Moderator

    – That’s not a testimonial. That’s a Quote type post.
    – I dont understand “post x” and “page x”. If you’re talking about the left color bars next to the post title, those are set using the “format” section of the post editor to select a post type. Each post type has a different color.

    For site numbers, there’s a short code for post count, but not one for searches or featured posts.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #57137
     Nunivo
    Participant

    Hi Sharmstr,

    Point 1, thanks for clearing that up.
    Point 2, where can i find the post editor?
    Point 3, is there way to enter a PHP code (that fetch real numbers)? I have a PHP code but i am not sure where i can place it.

    Anyway thanks.

    #57138
     sharmstr
    Moderator

    2 – WP Admin > Posts
    3 – Use that PHP code to create a shortcode then enter the shortcode using the Text Block shortcode in VC. Here’s an online shortcode generator that may help you http://generatewp.com/shortcodes/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #57306
     Nunivo
    Participant

    Sharmstr,

    I have used this code in Headway themes (licence ended, its a great theme but i didn’t get the look that i had in my mind). Anyway back on topic this was the code that would fetch numbers:
    <?php echo $activeJobs = wpjb_find_jobs(array(“count_only”=>true));>

    Is there not way to enter custom codes? I am not familiar with creating a short code.

    —-

    I have setup the home page it collects the following items in pinterest style:
    – Jobs
    – Companies
    – Testimonials
    – Blog Post

    How i can can i give each bar a unique color?

    Is there a way to restrict the search bar, if i stand in the search bar and hit enter (with no keyword) it opens all pages, is there a way that it only search specific pages?

    Thanks

    #57309
     sharmstr
    Moderator

    No, by default there is no way. Either create the shortcodes (I gave you a link that will do that for you) or search for a plugin that will allow you to enter the php code you have.

    Here’s how you can override the color for posts.

    COPY CODE
    
    .masonry-listing .type-post .post-title {
      border-left-color: pink !important;
    }
    

    You’ll have to figure out how to do it for the rest of them. The part that *should* be unique to each one is the .type-post. So maybe try .type-jobs, .type-portfolio and .type-kleo-testimonials.

    By default, enter will always take you to the standard search page. There is no way to change that. You can disable the enter to submit.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #57317
     Nunivo
    Participant

    Thanks Sharmstr,

    Will try the above

    #57390
     Nunivo
    Participant

    Hi Sharmstr,

    Shortcodes are working, thanks.

    But CSS color code not, i have contacted the plugin creator with the question what post types the rest are, this was his reply. If you are using version 4.3 then the post types are: job, resume and company, the title you can display the same as for posts.

    I am using 4.3, am i missing something

    .masonry-listing .type-job .post-title {
    border-left-color: blue !important;
    }

    Thanks

    #57394
     sharmstr
    Moderator

    Are you using the masonry layout? Did they work for the other post types? You can try this

    COPY CODE
    
    .masonry-listing .type-job .post-title {
      border-left-color: blue !important;
      border-left-width: 3px !important;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #57409
     Nunivo
    Participant

    Hi Sharmstr,

    When i go to visual editor i have “kleo post grid”.

    #57411
     sharmstr
    Moderator

    That code should work then.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #57426
     Nunivo
    Participant

    Hi Sharmstr,

    The code only works for the normal post, Kleo-Testimonials, Jobs and Company are unaffected.

    See screenshot for grid settings.

    #57428
     sharmstr
    Moderator

    You cant add the extra class names because it will add it to every post.

    I dont know what to tell you. Those arent standard posts. Right click on one of the titles and inspect the element. Find a way to identify it.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #57429
     sharmstr
    Moderator

    Send me a link.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #57430
     Nunivo
    Participant

    Here is the http://www.museonjobs.com

    From left to right – Kleo Testimonial – Job – Company – Post

    #57432
     sharmstr
    Moderator

    add border-left-style: solid;

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #57434
     Nunivo
    Participant

    Pefect that did trick, many many thanks.

Viewing 17 posts - 1 through 17 (of 17 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?