Featured Image Sizes and Mouse-over
-
Hi
I’m using portfolio shortcodes in this page (default template)
I want images to have same size and same mouse-over action as this page (portfolio template)
https://nucraftproductions.com/video-editing/
What css code should I use?
Any help would be highly appreciated.
Thanks a lot!
The blog I need help with is: (visible only to logged in users)
-
-
-
-
-
-
@nucraft13 can I recommend adding menu links to project types instead? You’ve already got the project types set up. You just need to link them properly in the menu. Then you’ll have pages like this:
https://nucraftco.wordpress.com/project-type/motion-graphics/ -
To do that, head to My Site > Customize > Menus. Click on Primary and edit it. Remove your page links, and add new links to Project Types instead. Then make sure you’ve checked the right box under Menu Location.
-
I was doing that before but I don’t want ‘project-type’ in the URL.
If you can give me a code for that then nothing like it -
@nucraft13 Got it.
You might have a harder time with a shortcode + CSS alone, but you could use inspect element to copy the styles, then apply them to a class for your shortcode as well. It would be a bit of work to figure it all out and it still might not be perfect, since you don’t get to add custom JS. Do you want to give that a go, or shall we move this thread to the CSS forums and give folks some time to figure all of this out?
-
I’m complete CSS noob so I wouldn’t know exact codes. Is there no way to remove the ‘project-type’ from the url?
-
-
Ah, it ended up in a queue for urgent issues. For CSS help, you are asking for custom code, so it will take time. You’ll want to be patient and avoid “bumping” your thread.
There is no way to remove the category from the URL.
-
Hi @nucraft13!
Right you are, this is the CSS forum.
I took a look at the changes you described and they took a bit of finagling, since we’re trying to match some already custom CSS onto a different page structure.
For the size, you’ll actually need to increase the width of that page’s content area, like this:
.page-id-71 .entry-content { width: 1140px; }That targets this page specifically, using it’s ID. For other pages, you’ll need to do the same thing. Here’s how you can grab a page ID.
Now we can set up some styles to try and match what you were already using – this was tricky, because the styles are so specific, and the structure is a bit different from what you’d already customized!
.jetpack-portfolio-shortcode .portfolio-featured-image:hover img { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); filter: grayscale(100%); } .jetpack-portfolio-shortcode a.portfolio-featured-image { background-color: #e57e38; display: inline-block; } .jetpack-portfolio-shortcode .portfolio-featured-image img { transition: all 250ms ease; } .jetpack-portfolio-shortcode .portfolio-featured-image:after { content: ''; display: block; position: relative; bottom: 10px; left: 50%; margin-left: -5px; height: 10px; width: 10px; opacity: 0; background: transparent url(/wp-content/themes/pub/illustratr/img/plus.svg) 0 0 no-repeat; -webkit-transition: all 250ms ease; -moz-transition: all 250ms ease; -o-transition: all 250ms ease; transition: all 250ms ease; } .jetpack-portfolio-shortcode .portfolio-featured-image:hover:after { opacity: 1; }That should do the trick – or at least get pretty close! Further customization may be a little beyond the scope of what the forums can provide, since this is pretty detailed and specific stuff :)
-
IT WORKED!!!
Thank you so much!
Is there a code to remove the ‘+’ sign that appears on mouse-over? -
Also, there’s a lotta white space between the header ‘Animation’ and the portfolio images
-
-
Hi, to remove the + on hover, add the following custom CSS.
.portfolio-thumbnail a::after { display: none; }I’m not sure I understand about the header animation. Are you talking about when the header image lightens when you hover over it? If so, the following will remove that.
.site-branding .site-logo-link:hover { opacity: 1 !important;; } -
Hi-
That was a great bit of help posted above –
Is it possible to use CSS to crop the images so that all the “tiles” and texts display with even rows, even if the uploaded images vary in size slightly?
-
Hi @kevinbryanarchitect, since you are using a different theme (Qua), and since CSS is generally theme specific, can I ask you to create a new thread in the CSS Forum? Many thanks in advance.
- The topic ‘Featured Image Sizes and Mouse-over’ is closed to new replies.