mark l chaves
Forum Replies Created
-
Forum: Plugins
In reply to: [Search Placeholder Avada] Simple way to bypass pluginHi @alejanic ,
Thanks for the question.
Have a look at the JavaScript that does the actual setting of the placeholder.
You should be able to replace
php_vars.search_placeholderwith whatever text you want for the placeholder.Then, copy/paste the 4 lines into a plugin like Insert Headers and Footers to inject the code into the footer area of your pages. Or, you can write a PHP hook in your functions.php to do the same thing.
Let me know how that goes.
Cheers,
mark
Forum: Fixing WordPress
In reply to: H2s and H1s are switchedAs @sterndata recommends, I’d hit up the OceanWP docs to figure this out.
Luckily you picked a decent theme with a bunch of PHP filter hook support.
That means, you should avoid changing any theme PHP files directly. It’s not necessary and you’ll loose your updates if you do.
OceanWP has a hook for what you want to do. I’m pretty sure it’s this one.
/** * Alter the single post heading tag from H2 to H1 */ function myprefix_single_post_heading( ) { return 'h1'; } add_filter( 'ocean_single_post_heading', 'myprefix_single_post_heading' );You’d add this code to your child theme’s functions.php file or use something like the Code Snippets plugin. Don’t add this code to any theme PHP or core WordPress files.
Here’s where I found the hook.
https://docs.oceanwp.org/article/453-alter-the-single-post-heading-tag
Further questions or to confirm this, should be posted to the OceanWP forum so you get the best theme experts helping you there.
https://wordpress.org/support/theme/oceanwp/
Cheers,
mark
Forum: Fixing WordPress
In reply to: some images not showing after migrationHi @fruitor ,
That’s wonderful news. Thanks for sharing your solution.
Have an excellent weekend 🙂
mark
Forum: Fixing WordPress
In reply to: some images not showing after migrationHi @fruitor ,
We’d need to see a page with the issue. Can you share the link if this is still an issue?
Thanks!
Forum: Developing with WordPress
In reply to: Gutenberg Custom Block: supports colorHi @marcuskober ,
The
supports:object already defaults background and text to true and gradient to false. There’s no need to add this to your block register code if you just want the defaults.If you wanted to override the defaults to turn off background and text or turn on gradient, then you’d need to add the
supports:object with the appropriate property settings.To add a colour picker to your InspectorControls (for example), you should be able to add a ColorPicker element to your PanelRow in the editor.
Here’s an example.
Cheers,
mark
Hi @ashishpatel1992 ,
I can see your
mailto:link being tracked now. Good job!You should start seeing these events in your Behavior > Events > Top Events report.
You can learn how to use the GA debugger and other tools here: https://youtu.be/DnPfb2Skc-E
Have a great weekend 🙂
mark
Hello @ashishpatel1992 ,
Thanks for the link.
Can you try to fix the JavaScript error I see on your site?
JS errors mean that something is broken and can be breaking other things like MonsterInsights tracking.
Also, I didn’t see any
tel:links. I only saw yourmailto:link.See the screengrab below for what I mean about the JS error and the
tel:link.Cheers,
mark
What’s the link to the page with your
mailto:andtel:links?- This reply was modified 5 years, 6 months ago by mark l chaves. Reason: Typos
Hi @lapg,
Can you check your GA > Behavior > Site Content > All Pages? Type “#” into the report’s search bar.
Make sure your date range is big enough to get a decent sample size.
Here’s a screengrab.
Thanks!
Hi @annagoncalves,
Thanks so much for the shout-out and kind words ! 🙂
I’m so happy this worked out for you.
Enjoy!
mark
Any time, @thelittleaviator. I’m happy to help and thanks for sharing your solution 🙂
mark
My pleasure @kreatur 🙂
Forum: Reviews
In reply to: [Will Work for Ko-fi] CoolForum: Plugins
In reply to: [Hide and Seek Header] Improved Performance (Avada 7.0)Hi @jetxpert,
Sorry for the late reply. This is excellent news. Thanks so much for sharing your knowledge and for your support as always.
Cheers,
mark