Mattia
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [OlympusWP] Create a CPT Templateok thanks
Forum: Themes and Templates
In reply to: [OlympusWP] Create a CPT TemplateThere’s that option there, but this is for creating new custom posts. I need to create a template with advanced custom fields, that will be used when the user create a custom post. I don’t know if it’s clear what I’m trying to say. For now I am editing archive-${my_cpt_slug}.php with a text editor but I am very slow.
Forum: Plugins
In reply to: [Contact Form 7] who adds these html tags?Thanks, I solved using this:
$notes = str_replace("\r\n", ' ', $pdsub['notes']);
Forum: Plugins
In reply to: [Contact Form 7] who adds these html tags?Thank you for your answer.
I will try it this evening but I’m not optimistic.
I already tried with this:
$notes = strip_tags($pdsub['notes']);
and if I print $notes I see no <p> or <br> tags but they are present in the mail I receive.
I think they are added later. But I don’t know where. Anyway I’ll try your solution.My problem are the <p> tags. The mail generated by this form is sent to a software that discards everything after the first <p>. I know this is stupid and I already opened a ticket.
But I was wondering if I can solve this on my side because at the moment, if an user inputs some empty lines in the textarea, the text is cut.Thanks
- This reply was modified 3 years, 7 months ago by Mattia.
Forum: Plugins
In reply to: [Contact Form 7] Pass data to mail tamplate through codeThanks but I don’t think that this solves my problem. Your method implies that I can modify the form-tags one by one, but this is not the case.
Here I made a simplified version of my form:
https://residence.elpirotest.com/en/sample/
I have to get all 7 “kid” input box, check if some of them have the same number (=age), then write to the mail body:
Kid of age $AGE: $NUMBER_OF_KIDS
This document is the closest I could find to my needs:
https://www.securitydawg.com/changing-contact-form-7-with-the-wpcf7_before_send_mail-hook/Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Sample Form Not WorkingPlease consider my post irrelevant. My mistake was naming a form-tag “children”. I guess it’s some sort of reserved word in CF7.
Thanks
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Sample Form Not WorkingThe form in the tutorial doesn’t work for me either. CF7 also gives this error:
“Multiple form controls are in a single label element.”
https://contactform7.com/configuration-errors/multiple-controls-in-label/I’m using a child theme of oceanwp on php 7.4. Any suggestion to debug this?
Thanks
Forum: Themes and Templates
In reply to: [OceanWP] OceanWP My Library Template is not being translatedShould I open my own thread?
Forum: Themes and Templates
In reply to: [OceanWP] OceanWP My Library Template is not being translatedI found the strings in the string translation section but it’s not showing… wtf??
Forum: Themes and Templates
In reply to: [OceanWP] OceanWP My Library Template is not being translatedYes I am (but I’m not the OP)
Forum: Themes and Templates
In reply to: [OceanWP] OceanWP My Library Template is not being translatedI have the same problem… I followed this guide:
https://docs.oceanwp.org/article/474-translate-custom-parts-of-the-theme-with-wpmlbut in the domain field “admin_texts_theme_mods_oceanwp” there’s no sign of my custom topbar.
Forum: Themes and Templates
In reply to: [OceanWP] Page Title / Breadcrumb problemThe problem was I disabled some oceanwp css.
Forum: Themes and Templates
In reply to: [OceanWP] Translating widget titleForum: Themes and Templates
In reply to: [OceanWP] Translating widget titleI was looking in the theme folder, not in the plugin folder, sorry… :/
Anyway I created a new .po file for my language with poedit but it still doesn’t work. I can see the strings in WPML > String translation but they don’t get translated. My guess is that the strings “Address:”, “Phone:” that I see are not the strings that refer to what’s inside the input field called “Title” but something else (the label of the sub-widget?).
In fact if I change the string into something else it doesn’t appear in WPML > String translation.Forum: Themes and Templates
In reply to: [OceanWP] Translating widget titleI checked that folder too and the strings are not there. But shouldn’t they go in the wp database since you can customize them?
Maybe I misunderstood what you said?