loremipsum
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How to add external dependencies to a custom block?Found the answer to my question:
Forum: Developing with WordPress
In reply to: How to add external dependencies to a custom block?I guess my question is how does WordPress handle their dependencies, since none of the WP packages that are being imported – e.g., translation, etc. – are being bundled with my block.
- This reply was modified 2 years, 2 months ago by loremipsum.
Not if it’s listed as a dependency.
Enqueuing will cause it to load unconditionally, whereas the goal is to load it only when the corresponding block is used.
Yes.
I have already tried that and still get the same error. It’s a multisite – does that make a difference? Site Kit is activated for each site separately per instructions in the documentation.
Yes, the site is currently in development and is password-protected. What type of access/permissions do you require?
Thanks, I submitted the form.
Forum: Fixing WordPress
In reply to: WordPress or Genesis misuse of rel next & prev?It appears to be a core WP functionality. And yes, it is incorrect (more on that from Google: https://support.google.com/webmasters/answer/1663744).
I solved it for myself by replacing default functions with get_previous_post() and get_next_post() and custom markup. Documentation below has examples on how to set it up.
https://codex.www.ads-software.com/Function_Reference/get_previous_post
https://codex.www.ads-software.com/Function_Reference/get_next_postI use W3 Total Cache plugin for all of my projects. Among other benefits, the plugin offers an option to minify HTML, which will remove all comments from your markup. Check it out!
Forum: Developing with WordPress
In reply to: Customized wp_nav_menu()Found an answer to my question here.
Forum: Developing with WordPress
In reply to: Customized wp_nav_menu()I’m looking for a way to customize wp_nav_menu as follows:
1 – remove auto-generated item IDs
2 – remove auto-generated item classes, except for:
2a – “current-menu-item”
2b – the custom class added through “CSS Classes (optional)” fieldI was able to accomplish 1-2a using filters, like so:
add_filter('nav_menu_item_id', 'custom_nav_menu_item_id', 100, 1); add_filter('nav_menu_css_class', 'custom_nav_menu_css_class', 100, 1); function custom_nav_menu_css_class($var) { return is_array($var) ? array_intersect($var, array('current-menu-item')) : ''; }
But I’m having trouble separating custom class (2b) from other auto-generated classes.
Any help would be appreciated.
Forum: Fixing WordPress
In reply to: How to remove the default css classesI’d also like to find that out.
WordPress is bloated with unnecessary markup. I wish there was an option to turn it off during installation.
Great plug-in!
I wish someone made a plug-in like that for regular posts. I’ve been using the Sticky Post Orderer, but many of my clients complain that it’s too difficult to manage. Drag-and-drop is just so much more intuitive.
Forum: Themes and Templates
In reply to: Custom Taxonomy Template TagIs it possible to strip out a specific tag? I’d like to strip out links, but keep paragraph formatting.
Here’s my code:
<?php echo get_the_term_list($post->ID, ‘Industries’, ‘<p>’, ‘, ‘, ‘</p>’); ?>
Forum: Fixing WordPress
In reply to: List custom taxonomy terms without linksI found a solution that somewhat works:
https://www.ads-software.com/support/topic/strip_tagsthe_contentmore-ltagtltstronggt?replies=3
Although it strips out all tags, and I would like to only strip out links. If anyone else has a better idea, please pitch in.
Thanks!