Home Forums Meteorite Meteorite Projects: Excerpt

This topic is: resolved

Tagged: ,

This topic contains 8 replies, has 2 voices, and was last updated by  Terra Themes 1 month ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1034

    JuanMZC
    Participant

    Hi there,

    How can I display projects on this page https://alternativedebt.com.au/transactions/ without featured image and title based on selected category using the current Meteorite: Projects – Type: Excerpt? as projects under one category don’t have featured image and I don’t want to display their titles.

    So, Meteorite: Projects has projects with and without image & title on this page depend on the category.

    The currently behaviour is when a project doesn’t have featured image is not display and when has different excerpt all the projects are display in one column.

    Thanks so much for your help.

    #1035

    Terra Themes
    Keymaster

    Hi Juan,

    please describe again what you want to achieve.

    What I understood: You want to have projects on the linked page. Based on its category you want to hide the featured image and project title. The problem you have is that the projects aren’t displayed when they don’t have a featured image asssigned. Is that correct?

    #1036

    JuanMZC
    Participant

    Sorry, my description was a bit unclear. Please, check this screenshot: https://we.tl/t-Cc6NzJ5vNp let me know if it is still not clear. Thanks.

    #1037

    Terra Themes
    Keymaster

    Ah, that clarifies things up.

    First of all, the projects without an image won’t show up, since the excerpt type wasn’t added in earlier versions. The other project types only work with an image.

    That being said, you could:

    a) upload a 1×1 px transparent image to the project or (if you don’t want the unnecessary image in your media)

    b) modify the project widget. Normally you would do this with a copy of the widget. If you have already changed the code of the Meteorite Extensions plugin, you could change it directly. Just for other users: That way the plugin can’t be updated again which is why it’s not really recommended.

    The line that need some adjustments is in /inc/widgets/widget-projects.php and/or /inc/widgets/widget-projects-carousel.php.
    Inside the function widget() is a line with if ( $projectImage ) :. This need to be changed to if ( $projectImage || 'Excerpt' == $type ) :. That way the projects would show up even if the project doesn’t have a featured image assigned.

    Maybe this will be added in future versions of the plugin too.

    To hide the image (if a) was chosen) and the title of the projects based on its category, add this custom CSS:

    .meteorite-projects .project-item.ads-raw .project-image {
      display: none;
    }
    .meteorite-projects .project-item.ads-raw .project-title {
      display: none;
    }

    Please tell me if this is working for you.

    #1039

    JuanMZC
    Participant

    Thanks for your help.

    CSS is working however widget display behaviour is wrong. Can you have look at these screenshots: https://we.tl/t-lHtB9d6WYP and here https://demo.alternativedebt.com.au/transactions/ ?

    #1040

    JuanMZC
    Participant

    Hi again,

    Everything is now working. Thanks so much for your help!

    #1041

    Terra Themes
    Keymaster

    Hi,

    great that it’s working now.

    If you had to make changes to the code, I’d be happy if you’d publish them. This way they might help other users.

    #1042

    JuanMZC
    Participant

    It was an issue with the cache plugin. Your explication and code work fine!

    #1043

    Terra Themes
    Keymaster

    Thank you very much for sharing Juan.

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

You must be logged in to reply to this topic.