How can I theme image field on node edit page? - drupal-7

Drupal 7, default image field on node edit page. I would like to add more css classes to the table and resize the preview pictures.

In your field settings at admin/structure/types/manage/[content-type]/fields/field_[field_name], you should have a Preview image style option which you can set.
You can create custom image styles at admin/config/media/image-styles

Related

Wagtail: How to render the blocks dynamically on Admin panel?

In wagtail, I need to make a Struct/Stream Block
There is a dropdown on the top of the block(Image/Video)
If editor choose Image, VideoChooserBlock should be hidden.
And if editor choose Video, ImageChooserBlock should be hidden.
class MyBlock(StruckBlock):
category = ChoiceBlock(choices=(("image", "image"),("video", "video")))
image = ImageChooserBlock()
video = videoChooserBlock()
Here, editor should be able to choose only image or video depending on category.
Any help is appriciated.
Thanks
You may find it useful to review the code of wagtail-link-block which does something similar.
Main files to focus on:
blocks.py for displaying fields conditionally based on a ChoiceBlock
static/link_block/link_block.js and static/link_block/link_block.css to handle the DOM manipulation and styling with JavaScript and CSS
wagtail_hooks.py to insert JS and CSS

How to add a button to image gallery in Elementor

Need to add a button below every image in Elementor gallery lightbox.
This button must be a mailto: with name of the image in subject line.
This is an inquiry button for that image.
I have tried to add some css, but i'm not familiar with css.
[enter image description here][1]
[1]: https://i.stack.imgur.com/be6et.jpg ”example”
Adding a new button can't be achieved through CSS. You're gonna have to edit the widget and add a new field, that is done with PHP.

I need to edit the z-index overlay in woo slider

I'm using woocommerce storefront theme and want to edit the woo-slider overlay to a gradient instead of a black box. I also want to style the text overlay and add some padding. Does anyone know how I can do this?
Here's a link to the page in question: https://olivetreemortuary.biz

Inline editing of image in Angularjs X-editable

I have many fields in my profile page. I am making my profile page inline editable with Angularjs X-editable. I am making progress using guide http://vitalets.github.io/angular-xeditable/
With this I made all the fields editable except the image field. I have an image i.e. profile pic and I want it to be in place editable [clicking on the edit icon near by the image, the image should change into the image upload widget and after upload image, it should again change back to the show the new image].
Is X-editable having feature of in place editing the image field ?
Or is there any other alternative ?

add image slider in home page using drupal

I want to add image slider in home page which is user editable and I am using Drupal7 for this.
I have used view_slideshow module and then created new content type as featured_slider and created view and added custom region in .info file and then configured the block.
But still I am not getting Image slider on homepage.
Is that possible to put slider in header region.
Did you put the region to render in your template files? if not, make sure to print it where you want it to show up inside page.tpl.php or any other template file at your theme templates folder as follows: print render($page['name_of_your_region']);

Resources