-
Posted a reply to How do I add my class the earliest possible?, on the site WordPress.org Forums:
So yes, the grid cannot be targeted, because it adds the class too late. -
Posted a reply to How do I add my class the earliest possible?, on the site WordPress.org Forums:
These 2 titles are also the same post type. My grid is my related posts… -
Posted a reply to How do I add my class the earliest possible?, on the site WordPress.org Forums:
The goal is to only apply devidowing to my specific grid titles, but that turned… -
Posted a reply to How do I add my class the earliest possible?, on the site WordPress.org Forums:
This is how my theme code looks that would target the title within my breadcrumbs,… -
Posted a reply to How do I add my class the earliest possible?, on the site WordPress.org Forums:
Thanks for the suggestion. It does not work, it breaks the layout and removes content… -
Posted a reply to How do I add my class the earliest possible?, on the site WordPress.org Forums:
add_filter( 'wp_grid_builder/blocks', 'prefix_register_block', 1, 1 ); // The render callback function allows to output content… -
Created a topic, How do I add my class the earliest possible?, on the site WordPress.org Forums:
Hi there, I am using the following code to add my cla… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Thanks for your reply. In that case I will try to sort this out with… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Hi, if the class is added, then it should work, so this question refers to… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Hi, I managed to add the class only to my related posts titles via grid… -
Posted a reply to How do I exclude the current post from a filter hook function?, on the site WordPress.org Forums:
And this is the code that is adding the metabox for specifying related posts for… -
Posted a reply to How do I exclude the current post from a filter hook function?, on the site WordPress.org Forums:
This filter hook successfully outputs all my related posts that were assigned to the current… -
Posted a reply to How do I exclude the current post from a filter hook function?, on the site WordPress.org Forums:
Thanks, I just asked the grid developer about the templates, because I am not sure… -
Posted a reply to How do I exclude the current post from a filter hook function?, on the site WordPress.org Forums:
If my related posts were added by specifying post IDs in a custom field in… -
Posted a reply to How do I exclude the current post from a filter hook function?, on the site WordPress.org Forums:
Hi, there is no section, it's simply the current post. In the current post I… -
Created a topic, How do I exclude the current post from a filter hook function?, on the site WordPress.org Forums:
Hi there, I am adding a class to the title, except th… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
I will post to the other forums. Thanks. -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Is there a way to exclude the current post in this filter? I tried something… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Gotcha, corrected it to: function add_notypo_to_title( $title ) { return "<span class='noTypo'>$title</span>"; } if (!… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
This is my code now: function add_notypo_to_title( $title ) { if (! is_admin() ) {… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Hi there, The global function above is adding the span also in the backend titles:… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
But I was told it's not possible to check where global hooks like this are… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Now everything is okay, almost. the_content is included, the titles in my related posts are… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Ok. Thanks for the advice. -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Oh no it's not possible because .related_grid_column is in the HTML, not in the_title itself. -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Is it possible to exclude classes like this: .related_grid_column .noTypo ? Then I could restrict… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Hi, great, thanks, now the noTypo class is added to the title. But look what… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
I have just asked the developer how to identify the current grid and mentioned that… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Here is where the wp_grid_builder/the_content filter is added in plugins/wp-grid-builder/frontend/blocks/post.php: <?php /** * Post type… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Hi @pputzer, my PHP skills are limited, my codes are 90% copy pasted, 10% modified… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
The file that I posted an excerpt from is: plugins/wp-grid-builder/frontend/sources/class-post.php -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Thanks for the info about the scopes. -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
This can be ignored: add_filter('wp_grid_builder/the_excerpt', [ 'WP_Typography', 'process' ] ); Only this is actually used:… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
I don't know anything about scope and control structures. -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Hi Pepe, $grid_id is a variable that is the ID of my grids, and it's… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Would something like this be valid? if ( 2 === $grid_id ) { add_filter('wp_grid_builder/the_excerpt', [… -
Posted a reply to cannot exclude element, on the site WordPress.org Forums:
Hi, yes, I still need help with this. I use these filters: add_filter('wp_grid_builder/the_excerpt', [ 'WP_Typography',… -
Posted a reply to Adding line break to string output by PHP, on the site WordPress.org Forums:
wpadvancedads.com -
Created a topic, Adding line break to string output by PHP, on the site WordPress.org Forums:
There is a heading output in my ad statistics page: &… -
Posted a reply to How do I style dynamically generated pages?, on the site WordPress.org Forums:
Thanks, it did work out with the favicon. Interestingly, it only works if the favicons… -
Posted a reply to How do I style dynamically generated pages?, on the site WordPress.org Forums:
But my ad stats page still doesn't show my favicon. Could you advise something to… -
Posted a reply to How do I style dynamically generated pages?, on the site WordPress.org Forums:
If the action hook wouldn't have been added in the plugin, is there a possibility… -
Posted a reply to How do I style dynamically generated pages?, on the site WordPress.org Forums:
So this code finally works! add_action('advanced-ads-public-stats-head', 'ad_stats_styles', 100); function ad_stats_styles() { echo '<link href="https://mysite.com/wp-content/themes/total-child-theme-master/ads_stats.css" media="screen"… -
Posted a reply to How do I style dynamically generated pages?, on the site WordPress.org Forums:
What about this code? add_action('advanced-ads-public-stats-head', 'ad_stats_styles', 100); function my_custom_styles() { echo "<style>{color: red !important}</style>"; }… -
Posted a reply to How do I style dynamically generated pages?, on the site WordPress.org Forums:
Hi there, thanks for your reply, I am working on it. I got an other… -
Posted a reply to How do I put the post title in a span that has a class using the the_title hook?, on the site WordPress.org Forums:
I realized I need to include a conditional so that only titles in a certain… -
Posted a reply to How do I style dynamically generated pages?, on the site WordPress.org Forums:
Why is the empty array needed in the code? -
Posted a reply to How do I style dynamically generated pages?, on the site WordPress.org Forums:
I have also found this example code of adding external CSS: <?php add_action( 'some_hook', 'maxslider_enqueue_slider_css'… -
Posted a reply to How do I put the post title in a span that has a class using the the_title hook?, on the site WordPress.org Forums:
is this correct? function noTypo_title ( $before = '<span class="noTypo">', $after = '<span>', $echo =… -
Posted a reply to How do I style dynamically generated pages?, on the site WordPress.org Forums:
This hook is not listed at the hooks in the plugin docs, hence I didn't…