Mapping pictures in CSS PHP? - php

I have a plugin which is importing some products. But the problem is that the plugin only supports "gallery pictures". This is the reason why you don't see any title picture:
https://gamekeys-shop.de/produkt/battlefield-1/
Is there a way to map the gallery picture to the title picture with CSS?
Or is there another way?
Furthermore it would be very good if I can also delete the link from the gallery picture so that I have only one outgoing link and not two if the gallery picture is mapped to the title picture.
Is there a way to do this?
Greetings and Thank You!

Related

Custom WordPress post types NO PLUGIN

So I been tasked with creating two custom post types for WordPress as an exercise. Was wondering what direction I should go with this. Check it out below:
Part 1
Create a custom post type called Products
A Product needs fields in the admin for Title, Link, Image, Background-color
Take each of the images from the product-images directory, and create a product from them.
Each one should have:
a different background-color
a different title
Display these Products on the home page, and make sure that it looks good in every screen size. You can refer to the screenshot called products, in the screenshots directory, to see how it should look.
Part 2
Create a custom post type called videos
A video only needs fields in the admin for Name, youtube-id
Take each of the videos listed in the text file videos-list and create a video from them.
On the home page, below the products section, create a new section and that shows only one video and a list of text links for the other videos. Refer to the screenshot called videos, also in the screenshots directory to see how it should look.
When you click the link to another video in the list, the video displaying on the home page should change and become the new video
Can anyone give me some direction on how to go about this. I understand how to create a custom post type. What I don't seem to get is how to create fields for a bg color and image. For the video section I am further confused as to how to actually create the section with links on the right and a video that changes to the left once the appropriate link has been clicked.
I'm not a WordPress guru by any means so any help on these 2 problems would be greatly appreciated.

Add Feedly featured image class "webfeedsFeaturedVisual" to featured images in Wordpress

I would like to customize the way Feedly presents my website's RSS Feed (here), which is actually very poorly displayed.
I followed their instructions adding all the suggested markups; this way I managed to have the correct title, description, icon, logo, cover image, accent color and everything else.
However, in the abovementioned guide it's said that in order to have Feedly pick the correct featured image you have to add a webfeedsFeaturedVisual classname. How can I do that with all my featured images?
Thank you in advance. Regards.
If you are looking to add a class to your featured image:
Edit the reference to call the featured image in your template:
<?php the_post_thumbnail('post-thumbnail', array( 'class' => "zoomer-class attachment-post-thumbnail")); ?>
Change zoomer-class to your own class name.
More info here:
https://wordpress.org/support/topic/featured-image-add-image-class?replies=4
Hope it helps!
Actually I managed to let Feedly show the featured image through a plugin.
Thanks for your help.

How to display all image in a folder with a shortcode for a wordpress post?

How do you insert an image from the server folder to the wordpress post with a shortcode, (i don't wanna insert image manually) ?
I've search from google, and see the plugin that approached my desire:
wordpress.org/plugins/folder-gallery/
an example of using this plugin's shortcode is:
[foldergallery folder = "wp-content/uploads/cars"]
(the plugin search for folder cars, and show the image content)
it's good, the plugin will show gallery with lots of thumbnails,
example result:
but this is not what i want.
I want the result is all image in a folder will show up with full size in the post.
is somebody here know another plugin or another way to make it happen, or maybe to create own shortcode to show full image size?
thanks,
Gerga
Just add the HTML anywhere in the post (preferably in he HTML mode of the Editor)
<img src="/wp-content/folder/car.jpg" style="width: 100%,">

how to insert a description in wordpress gallery popup?

I am using WordPress 4.2.2 and i need to show the image description in a gallery popup, like a light box view. In the gallery if i click a images i need to show the descriptions in a popup. In that popup i can edit the description and save to database and show the updated description in the same popup. I using the enfold theme currently. Is it possible to make this? Is there any plugins or can any one guide me to write it. Bellow i have given the example popup of gallery. Thanks in advance.
try this plugin, It provides a powerful engine for uploading and managing galleries of images, with the ability to batch upload, import meta data, add/delete/rearrange/sort images, edit thumbnails, group galleries into albums, and more
https://wordpress.org/plugins/nextgen-gallery/

NextGen Gallery: Display title in the gallery

I want to display the title in the NextGen gallery. The plugin does not offer an option for that, so I have to somehow go past it, and modify the code.
NextGen Version:2.0.33.
Has anyone got across the same problem? How can I solve it?
Stefan - The view folder is in the modules/ngglegacy folder. New version I guess.
As for the gallery title, I modified some code I found here,
http://psychopixi.com/tech/how-to-link-back-to-an-album-in-a-nextgen-gallery/
It's actually for showing breadcrumbs and providing a back button, but if you change the values of the iterators myi and myi2 in lines 10 and 13 it will just output with the title, which you can format as you wish.
As per their suggestion I used the plugin Shortcode Exec PHP to make shortcode which I then placed in my gallery page. You can then place the shortcode for your gallery after.
It's not an elegant solution, and it assumes that the url of your gallery has the name of the gallery in it.
Good luck.
<?php echo $gallery->title ?>
Place this in your gallery template file wherever it's needed.
I found a solution to this problem having searched all day on inet.
Your 'view' folder is in the ngglegacy folder of the plugin. You can add <?php echo $gallery->title ?> to that file. Then goto Gallery options in your admin area and select gallery.php to show for the Basic Thumbnails.
thats it!

Categories