X Theme Remove H2 from Prompt Shortcode

Hey guys!

I’m trying to make use of the amazing prompt shortcode here - https://demo.theme.co/integrity-1/shortcodes/prompt/ - although I’d like to use a few times throughout every post.

That said, by default it uses a h2 tag:

<h2 class="h-prompt">Check Me Out!</h2>

Instead of the h2 class, I’d like to use a div class (or h3/h4), but I can’t locate the .css or .php file where I can make this change inside the theme (I’ll move it to child theme after).

Can you please help me find it? Thank you!

Hello Michael,

Thanks for writing to us.

Regretfully there is no option to edit the shortcode markup, it would require custom development I would suggest you please contact a developer who can assist you with your concerns or you can subscribe to One where customization questions are answered. Please note we don’t provide custom development or child theme support. It is out of support scope.

Thanks for understanding

I understand, but can you at least point me in the right direction? Just you know, roughly. Is it inside the Theme folder or Cornerstone? And is it a .php or a .css file?
I’m not asking for any custom code or actual work done, just the rough location of the file, which I’ll edit myself.
Thanks.

Hi Michael,

The files are bundled into the Theme Folder and specifying the file name is beyond the scope of Theme Support. And also we strongly advise not to modify the theme files, as it will create problems with the upcoming updates in the future. I would suggest you do the same as my colleague, to take help from our newly launched service called One, where the customization questions are answered.

Thanks

Managed to find it, and I’ll leave the solution here in case someone else is wondering. You can search in Windows “cmd” with the string (inside the WP folder):

FINDSTR /i /S "h-prompt" *.php

And the file was not in the theme folder by the way (I mean it is, but it’s obsolete). It’s in the Cornerstone plugin folder, specifically here:

\wp-content\plugins\cornerstone\includes\shortcodes\prompt.php

Thanks!

Hi Michael,

Glad that you are able to find the file.

Thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.