Skip Navigation

[Resolved] Modifying /adding to a page

This thread is resolved. Here is a description of the problem and solution.

Problem:

The customer wanted to add or delete a funder's name/logo to/from a dropdown list on a page. They were unsure how to achieve this and lacked guidance from the previous developer.

Solution:

We found that the dropdown is hard-coded in the child theme's functions.php file. Adding an image directly into elements of a dropdown is not supported by browsers. We suggested using a library like Select2 or Chosen for advanced customizations that allow images in dropdowns, but this requires significant code customization, which falls outside our support scope. We advised the customer to contact a Toolset contractor for further assistance.

Relevant Documentation:

Select2: https://select2.org/
Chosen: https://harvesthq.github.io/chosen/

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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 7 replies, has 2 voices.

Last updated by jasonC-17 3 months, 1 week ago.

Assisted by: Mateus Getulio.

Author
Posts
#2739216

Tell us what you are trying to do?

I need to add/delete a Funder's name/logo, to/from one of our pages.

Is there any documentation that you are following?
Basic troubleshooting.
I have looked thru the plugin, and can't figure it out.
The web dev that installed this plugin, was supposed to instruct us on how to modify pages, especially something as simple as adding a logo, unfortunately that never happened, and we are no longer using his services.

Is there a similar example that we can see?
hidden link
Once you're on this page click on the Funder Name, and a drop down box will show a list of Funders. I need to add/delete from that page.

What is the link to your site?
hidden link

Regards
Andre

#2739470

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Andre,

Can you please help me to understand this?

Are you looking into adding the logo to each item inside the drop down or do you want to add it after the search takes place, eg. adding it to a card such as 'Exploration and Digital Deployment': hidden link

Is the logo a custom field created with types, is it a featured image of that post?

Thank you, please let us know.
Mateus

#2740022
Conseil Des Arts De Montréal.png

Hi Mateus

Are you looking into adding the logo to each item inside the drop down: "Yes"

Is the logo a custom field created with types, is it a featured image of that post?
I'm not sure.

I'm uploading the logo for you to see.
The name of the Funder is:
Conseil Des Arts De Montréal

Hope this helps

Regards
Andre

#2740289

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Andre,

To suggest the best way to achieve this, I'll need to see how this view is set up in the admin area.

Can you please share temporary admin login details along with a link to a page where this view can be seen?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Mateus

#2742343

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Andre,

Thank you for sharing those details and I apologize for the delay due to the weekend.

Indeed, I was blocked when trying to access it.

Please add my IP to the whitelist: 179.0.72.166

Thank you, please let me know.

#2742852

Hi Mateus

I hope you enjoyed your weekend

the ip has been whitelisted.

thx

Andre

#2743016

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Andre,

I checked the search form you want to edit and found it is hard-coded in the child theme's functions.php file, between lines 684-790.

Unfortunately, inserting an image directly into the <option> elements of a dropdown using an <img> tag isn't supported by browsers.

To achieve this, you could consider using a library like Select2(hidden link) or Chosen(hidden link), which allows for more advanced customizations, including adding images to dropdowns. However, implementing this would require significant code customization, which falls outside the scope of our support.

If you need further assistance with this implementation, you might consider reaching out to a developer from our list of Toolset Contractors.

Please let me know if there's anything else I can help with.

Thank you for your understanding.
Mateus

#2743534

Hi Mateus

Thank you very much for trying!

It's much appreciated.

I will reach out to a Toolset contractor.

Regards
Andre

#2743535

Thank you!