Jump to content

Archived

This topic is now archived and is closed to further replies.

suerama

Pins Pro masonic gallery question

Recommended Posts

suerama

I'm using PinsPro. I'm trying to create a masonic gallery that shows featured images for pages that have featured images only. 

 

Currently the default image for pages without featured images is displaying for those type of pages: /wp-content/themes/pinspro/dms'images'default-image.jpg

 

I've tried this code snippets:

.pl-grid-image fix > <img src="http://clientdev2.ramacommunications.net/wp/wp-content/themes/pinspro/dms'images'default-image.jpg"alt="no image added yet."> .pl-grid-image {display: none;}

 

But that was some very bad code apparently.  :bow:  

 

Is there any way for me to achieve this kind of filtering of only the pages with featured images?

 

Or, if that isn't fairly easy to achieve, Is there another kind of option for page filtering the pages that are shown in the All category? There seem to be options to filter posts with meta key and other info, is there any way to do this with pages?

Share this post


Link to post
Share on other sites
Danny

I am sorry but I am not sure what you're referring to or even attempting to do.

Where did you get this code from ?

 

.pl-grid-image fix > <img src="http://clientdev2.ra...ault-image.jpg"alt="noimage added yet."> .pl-grid-image {display: none;}

 

As you can't mix CSS with HTML like this. 

Are you saying you want to hide the default image for the Masonic section ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
suerama

Hi Danny —

 

You say "you can mix CSS with HTML like this". Really? I thought that this was my rather big mistake here. Or was that a typo, did you mean "can't"?

 

This is what I'm aiming for: I want only the pages that have featured images to be represented on this page. What is a good way to accomplish this?

 

 If hiding the default images is the way to go, then I'd like to do that. But if there is a better way to accomplish this with some meta info or something, do please advise me.

 

Thanks!

Share this post


Link to post
Share on other sites
Danny

I did indeed mean can't (fixed typo in post above). If you want to only populate the Masonic gallery section with posts that have a Featured Image, you will need to use the meta options and custom fields. See this post for instructions on how to achieve this - http://forum.pagelines.com/topic/34590-custom-post-types-meta-key-meta-key-value-not-returning/?p=203639


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
suerama

The problem is, I don't want to populate it with POSTS, but with those PAGES that only have featured images. 

 

I can't figure a way to do this. Should I find a way to create meta key fields for Pages, for example? Or can I keep this from displaying the pages with no featured images in any way. 

Share this post


Link to post
Share on other sites
Danny

The custom fields method, which I link above to instructions also works on Pages. So simply use this method on the pages that have featured images and this will populate the Masonic section with only those posts.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×