Okay
  Public Ticket #1200175
Displaying project title, sub and category together
Closed

Comments

  •  2
    thedhauscompany started the conversation

    I have two requests to edit the main projects page (where all projects are listed.)

    1. I am now using subtitles, but the order throughout my site is to have the subtitle above the title. So the thinner text is ontop of the bold main title. Is it possible for me to edit the code and change the order?

    2. My client wants to display the category as well. Can I display all three? preferable in the following order as mentioned in #1

    1 Subtitle

    2 Title

    3 Category

    Im happy to add or edit any code in the child theme if you can show me what snippet to edit/add?

    Many Thanks



  • [deleted] replied

    Hi there,

    1. Just add this CSS:

    .portfolio-holder.portfolio-type-1 .portfolio-item .info {
        display: flex;
        flex-direction: column;
    }
    .portfolio-holder .item-box .info p.sub-title {
        margin-bottom: 0;
        margin-top: 10px;
        order: 1;
    }
    .portfolio-holder .item-box .info h3 {
        margin-top: 0;
        order: 2;
    }
    .portfolio-holder .item-box .info p.terms {
        order: 3;
    }

    The result is:


    (view large version)

    2. Actually this is not possible for the moment, but here is the file for you to replace which will also show categories for portfolio items:

    Download this file and replace it in this directory (of the theme): /tpls

    Save this file for future uses when you update the theme (in case you are not using child theme)

    I hope this will work for you.

  •  2
    thedhauscompany replied

    Worked Great thanks,

    I have another query, can open a new ticket if required?

  •  2
    thedhauscompany replied

    Im using the portfolio items widget on the homepage, it is listing the news and portfolio items together, but it will not mix news and portfolio, even on random it shows all of the news items above any portfolio ones.

    None of the other options will list the different type of post together.. I just need to integrate the different post types, it seems like it should work that way, am I missing something?

    As you can see in the image, the posts and portfolio have been entered mixed, but they always keep seperate?


  • [deleted] replied

    Hi again,

    It is not possible to mix different post types with Portfolio Items widget, because as the name suggests it is only intended to be used with Portfolio items. The query builder will show all post types because it works that way but this only works with portfolio items.

    There is an alternative for this, you can use Grid Builder from Visual Composer to build different grid layouts for your data:

    https://vc.wpbakery.com/video-academy/grid-builder/

    I hope this will help you.

  •  2
    thedhauscompany replied

    Sorted, thanks

  • [deleted] replied

    Hi there,

    Glad to hear that

    P.S: If you like our theme, it would help us a lot if you could give us a five-star rating on Themeforest from your Downloads tab.

    A huge thank you from Laborator in advance and have a great day!

    Will set this ticket as solved from here.

  •  2
    thedhauscompany replied

    Im having to re-open this because the issue isnt resolved.

    I went through every conceivable option, and I ended up with what seemed to work, got a mix of portfolio and news.. BUT there is no random option, which is a dealbreaker.

    Is there any help you can offer?

    Im using post media grid with List of ID's - this is the only option that will mix portfolio and news items.

    None of the others seem to work - ACF looks like it should but it doesnt. Maybe a custom query, if you could help me formulate a simple one I could extend it?

    I just want to list X amount of different post types together in a masonry block, and have it set to random? seems simple ; (

    http://dev.thedhaus.com/



  • [deleted] replied

    Hi again,

    I have searched all Visual Composer files to find an alternative for this but it seems not to be implemented such functionality.

    I suggest you to contact Visual Composer team and ask for help on this case.

    Maybe they can implement such functionality in the upcoming updates of VC Grid items shortcode.

  •  2
    thedhauscompany replied

    Ok no problem, thanks for looking into it

  •  2
    thedhauscompany replied

    Hi,

    In order to get this to work I am using a plugin called 'The Grid'. Its working well, but for html content to be pulled in it uses the excerpt field on any given page. Ive looked and there is not option for excerpt on a page, and its not in the screen options?

    its a normal page Im on, using Visual Composer to build

    http://dev.thedhaus.com/contact/

    How can I activate the excerpt field?

    Thanks

  • [deleted] replied

    Hi,

    You can use this plugin to add support for Excerpts:

    https://wordpress.org/plugins/page-excerpt/

    Then you can select from screen options to show excerpt and modify it for each page.