Skip Navigation

[Resolved] In custom post form, mobile user cannot add caption

This support ticket is created 2 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 2 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#2614439
Screen Shot 2023-06-09 at 2.59.09 PM.png

I am trying to: create a post form for client to add posts and upload images through media library

Link to a page where the issue can be seen: hidden link (this is the "My Account" page I have created)

I expected to see: After uploading a media library image, it should ask for caption/alternate text.

Instead, I got: on desktop, the alt text and caption fields are there. On mobile they are not. Client wants to be able to add media and captions in the post form.

The first image shows the form on the desktop. As you can see, there is a place to put Alternate text and caption. There are no caption fields on the phone.

#2615221

Thanks for the details, I can see the problem in mobile view, will update here if find anything

#2615713

It is a custom CSS issue, you can use CSS codes to show the caption fields, see below sandbox website:
Login URL: hidden link

Post form with image fields:
hidden link
In section "CSS editor", add below CSS codes:

@media only screen and (max-width: 640px), screen and (max-height: 400px){
  .media-sidebar {
      max-width: 35%;
      bottom: auto; 
  }
}

It works fine in frontend:
hidden link

#2615843
IMG_5518.PNG
IMG_5517.PNG

Hi there I added this css to the custom css of my theme but it did not help my problem. When I am on my phone and I want to add a new post of a custom type with image field, I can upload images using the media browser however there is no place to add the caption text.

#2615861

I am on iphone using Firefox if that makes a difference.

#2616021
20230615114126.jpg

I have tried again in the sandbox website:
1) Change the CSS codes as below:

@media only screen and (max-width: 640px), screen and (max-height: 400px){
  .media-sidebar {
      max-width: 35%;
      bottom: auto; 
  }
}

2) With my android phone
hidden link
upload an image, I can see the caption fields correctly, see my screenshot