All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

How to have different site identity logos on each page on Astra Theme [closed]

Original title - Noob here. Wondering how to make use of this Astra theme function / filter to have different site identity logos on each page The function is at line 1471 here (...
0
votes
1answer
37 views

Changing the argument of a function

This is part of a function in Woocommerce: function woocommerce_breadcrumb( $args = array() ) { $args = wp_parse_args( $args, apply_filters( 'woocommerce_breadcrumb_defaults', array( ...
1
vote
2answers
759 views

Filter and modify entry-footer link in twentyseventeen

I'm currently using twentyseventeen child theme and I need to modify the link on single post page below the article. His href is forwarding to category of the post. I'm pretty new to filters in wp ...
0
votes
2answers
252 views

Trouble using remove_filter to override function in parent theme

I'm having trouble using remove_filter to override the read more links in my parent theme. Here's the parent theme functions: /* Modify the '[...]' Read More Text */ add_filter( '...
0
votes
1answer
17 views

Is there a function to edit Blogs contents in Blogs page?

Can I edit blogs output content in blogs page? What is the correct way to do it? I assume there must be a filter function, the name of which I don't know.
0
votes
2answers
597 views

How to edit/replace Parent functions.php function in Child Theme to add “Walker” class

I'm using the theme "Tesseract" as a parent theme, and I'd like to use the walker class to get menu descriptions. However, I am having trouble figuring out how to edit the php, because I don't know ...
0
votes
1answer
336 views

Is it possible to use add_filter in an included file in the child theme's functions.php?

I am trying something basic but I can't seem to figure it out or I am not even sure if it is possible to be done in a child theme. What is am trying is to organize the the codes in the functions.php ...
1
vote
1answer
319 views

How to add #navbar to all page links?

I have several Wordpress websites with large images at their tops, using 2013 child theme. How to add #navbar anchor to all page links, so that the browser scrolls down a bit, when a user clicks a ...
1
vote
2answers
290 views

Passing variable from child theme to parent theme

I want to pass my google map custom colors from my child theme to my parent theme. So in my Parent Theme's functions.php I have add_filter( 'post_thumbnail_html', "map_thumbnail" ); function ...
0
votes
3answers
537 views

Passing variable from child theme function to parent theme filter

I want to pass a variable from my child theme function to a filter which resides in my parent theme. Please let me know whether below code will work or not ? Is it the right way ? Code in Parent ...
0
votes
1answer
78 views

Hook in parent theme Menu function

Trying to modify Parent Menus function on child theme, the original function is: function original_theme_menus() { $menus = array( 'top' => __( 'Top Menu', 'theme-domain' ), ...
0
votes
1answer
2k views

remove_action not working, even after changing priority [duplicate]

So one of the functions in my theme is: public function job_manager_job_filters_distance() { //Show some HTML } And somewhere else in the document lies: add_action( '...
1
vote
2answers
1k views

Can't get wp_title filter working in twenty sixteen child theme

I am having difficulty overriding the title set in the admin panel for a custom template page, and outputting a custom <title> tag. The parent theme is WordPress's stock Twentysixteen, which ...
4
votes
2answers
656 views

syntax for remove_filter in parent theme with class

I'm trying to remove a filter on the register_url hook a parent theme added, that seems to have a class nomenclature I can't figure out. Ordinarily, a filter for this hook would be easily added like ...
0
votes
1answer
2k views

How to override filter in child theme?

I'm trying to override a parent theme filter in a child theme; I must have the syntax wrong as the override is being completely ignored. Here's what's in my child theme's functions.php: //* remove ...
0
votes
1answer
738 views

How to edit classes in body tag?

I'm trying to edit classes in the body tag for custom post types so I can display the pages full width using the WooThemes Canvas built in full width class - instead of overriding it. By default it ...
1
vote
2answers
2k views

Override parent theme function that is not hooked or in the functions.php file

I need to remove a function from the parent theme and replace it within the child theme. The function is called print_meta($meta_box). The function is not pluggable and it located in a random file, ...
0
votes
1answer
103 views

Override typo in multiple parent theme files?

I'm using the lovely Imbalance theme from WPShower. I am able to make almost all the modifications I need through files and filters in the child theme I created. However, there is a typo that appears ...
2
votes
2answers
3k views

How can I remove css from a child theme?

I am using the theme twentyten as a parent theme for my child theme. I have other stylesheets I want to use and so I'm trying to figure out how to wp_deregister_style for the style.css sheet that is ...
0
votes
1answer
81 views

Any adverse effects of adding apply_filters to a function?

I'm going back through my older WordPress theme and making the functions filterable and also adding the function_exists checks. Is there anything I'm not thinking about that this may cause problems ...
0
votes
1answer
132 views

output custom Posts on a Page

I'm trying to write a function that will output a set of posts on a page. Because I want to display more than just the post titles, wp_get_archives() won't do (I think). The function to add the post ...