Mike Eastwood - Webalite
Forum Replies Created
-
Hi @mohenis
It’s probably the wp-minify Plugin minifying the JavaScript (based on the line of code you pasted in).
Can you configure the wp-minify Plugin to skip the HubSpot Plugin?
MikeOk, if you add the CSS to style.css it will remove it from the front end (so the menu link disappears in the black menu bar at the top – just tested it).
If you want to remove it in the admin area you will either need to enqueue an admin style:
function load_custom_wp_admin_style() { wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/admin-style.css', false, '1.0.0' ); wp_enqueue_style( 'custom_wp_admin_css' ); } add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );Lifted from: https://codex.ww.wp.xz.cn/Plugin_API/Action_Reference/admin_enqueue_scripts
Alternately you could add a function to embed a Style in the admin area:
add_action( 'admin_head', 'rv_custom_wp_admin_style_head' ); function rv_custom_wp_admin_style_head() { ?> <style> .mycustomcss1 { enter your css } .mycustomcss2 { enter more css } </style> <?php }Lifted from here:
https://www.engagewp.com/edit-wordpress-admin-css/
Both of these are useful in other ways…
Funny the things that annoy us ;o)
Mike
Hi @reelism
Looks like there’s a space in your CSS (between the li and #) so either remove the space:
li#wp-admin-bar-leadin-admin-menu
or the li:
#wp-admin-bar-leadin-admin-menu
Cheers
Mikep.s. if you have HubSpot questions I recommend https://community.hubspot.com
I agree, the link is redundant in the admin bar.
If you rummage around in the HubSpot plugin you can probably find the hook that loads the link into the admin bar. You could then un-hook it, in your functions.php, with a later priority.
It’s probably easier to target the link in the Admin CSS file and hide it with a “display:none;”
-Mike
Hi @alexalp
You can turn off the chat in HubSpot. Go to:
Conversations (top menu) > Chatflow (submenu)
From there you can turn off your Chatflow.
Did that work?
MikeHi @tyrannous
I don’t actually work *for* HubSpot – we’re a HubSpot Partner Agency so I come on here to help out… I’ve sent a link to one of the developers at HubSpot so they can look into it.
We *always* have error reporting turned on and the plugin is working fine on all or installations.
Cheers
MikeHi everyone
Without seeing the error information it’s impossible to diagnose.
You can roll back to Version 7.0.2 by removing your current plugin and installing this:
https://downloads.wp.xz.cn/plugin/leadin.7.0.2.zip
However, I would be surprised if this solves anyone’s problem.
If you try this please let us know the results.
Mike
Hi @chacon88
The path you’ve added in the error message seems to be missing some information (which would confirm it’s the theme or a plugin).
Usually when the error occurs in “functions.php” it’s an issue with the WordPress Theme.
A Notice should not be visible publicly and your site will run normally even if there is a notice.
Difficult to help without know a little more information (looking at your site).
Cheers
MikeForum: Fixing WordPress
In reply to: Embedded Form from HubSpot Disappeared After New UpdateHi @fresh14
@swansonphotos is right – those pesky BR tags are BReaking your JavaScript. By removing the spaces (as @swansonphotos suggested) your JavaScript should behave.
Before
<script><br /> hbspt.forms.create({<br /> portalId: ‘386862’,<br /> formId: ‘2243bd40-1f0c-4429-aaed-35a29cfe5a02’,<br /> target: ‘.newreg-form'<br /> });<br /> </script>After
<script>hbspt.forms.create({portalId: '386862',formId: '2243bd40-1f0c-4429-aaed-35a29cfe5a02', target: '.newreg-form'});</script>Also, I recommend you try the new HubSpot WordPress Plugin. It has a Shortcode which makes it easier to handle forms (and harder to break them).
Let me know if that works for you.
Cheers
Mike- This reply was modified 7 years, 4 months ago by Mike Eastwood - Webalite.
- This reply was modified 7 years, 4 months ago by Mike Eastwood - Webalite.
Hi Stiofan
Because you’ve been helpful in the past (not because Paolo is trolling me) I have listed all open issues in separate tickets on your forum:
1. search results treat “keyword” differently to “keyword,” (with a comma) unresolved issue.
When I installed to the update (Version 1.6.37) to get the fix for the search issue I encountered these new issues
1. Upload Feature Image and Upload Logo Image buttons don’t work so a Listing Owner cannot add images. (link)
2. Multi Select List displays with errors – unusable (link)
3. Advanced Search icon changed to SVG unable to target with psuedo classes. (link)
After 20 posts on one bug – which wasn’t solved – I gave up posting bugs to the forum.
Other issues:
You can’t use feature listings without installing other plugins – one of which is WP Users. WP Users hijacks WordPress login methods and stops you from:
– using other permissions plugins (multiple redirects – unusable)
– logging in through wp-admin (requires you to login twice and redirects to the homepage on second login).
– using any of the WordPress Capabilities methods in your plugins
– stops you from using anything other than Admin for your non-directory users which is a massive security risk.I’ve lost several hours this month through issues like these. Now I have to roll back the plugins to make the directory useable again.
Hopefully you can understand my frustration.
Mikep.s. another frustrating thing for developers debugging your plugin is that you can’t use any Add-ons in a local or staging environment making testing impossible
- This reply was modified 7 years, 5 months ago by Mike Eastwood - Webalite.
Hi Stiofan,
I upgraded the plugin to fix the bug you said would be fixed in the next release. The upgrade created 3 new bugs and did not fix the original issue.
We’re having to roll back and test to find which version has the least number of bugs.
Originally I had given your plugin two stars but when I wrote the review it made me realise how disappointing your plugin is.
Paolo’s comments highlight why it’s best to avoid your plugin.
Mike
We had an issue where the WYSIWYG Editor had disappeared in the Admin Area.
The old html content was still displaying on the site (public) but we couldn’t add or edit the info. No errors, the database had been updated.
Steps I took to solve the issue:
1. Backed up site (again)
2. Upgraded to ACF Pro*
3. Looked for the missing field in the settings
Custom Fields > [field group] > Edit
4. Found the field that was missing
(in our case we had “unknown” showing as the field type)5. change the field type to WYSIWYG
6. breathed a sigh of relief
7. Backed up the site again
(we do this so we can diff before and after if something breaks).Hope this helps.
Mike*The ACF Team deserve way more than the trivial price of the Pro version
Excellent.
One more tip – you can click the “three dots” at the top of the block and save your HubSpot Form Block as a Reusable Block.
Then it’s really easy to add the form in other places.
Cheers
MikeHi Haeussi
You can add a Custom HTML Block and insert your embed code into your block.
1. Click the plus to add a block
2. type “HTML” and it will filter the blocks
3. click “Custom HTML” to add the block.
4. paste your embed code into the block.
5. save or publish.It wont render the form in the editor but it does render it on the page.
Note: the code you shared has “<br />” or break tags in the Javascript. Make sure they aren’t in your code when you save it.
Cheers
Mike