Forum Replies Created
-
AuthorPosts
-
Hmm, I don’t really understand on how to implement this.
For the record, I’m using Events Manager Pro, not The Events Calendar
- This reply was modified 10 years, 10 months ago by Alcadis.
Sorry to bump this post, but I’ve found other solutions for the things I had to fix so far. But I still don’t really know how I can override functions. I know how the hook works, but I can’t seem to find the right way to override a specific function.
Now, I want to edit the avia_title function, but ofcourse, I want to do this in my child theme.
I tried several variations of the code below (using different parts from the original function in enfold-child.php), but nothing seemed to work.function avia_after_parent_theme_setup() { global $avia_title; $defaults = array('heading' => 'h1'); } add_action( 'after_setup_theme', 'avia_after_parent_theme_setup', 10);
I had to update the theme due to some other issues. Seems the archive widget is no longer creating the “automatic concepts” part in the breadcrumbs. Now, its just ‘home/2013/november’
So for now, problem fixed.
November 27, 2013 at 10:08 am in reply to: Javascript problem? Slider and Search stopped working #193772I just updated the theme and everything works fine now. So probably the changes I did to the theme core files caused this problems.
I’ll try to make these changes again, one by one and check if this problem occurrs again.
Thanks
November 25, 2013 at 6:18 pm in reply to: Javascript problem? Slider and Search stopped working #193036I made changes to the core theme files so updating the theme takes while keeping these changes will take some time
:(I’ll update later this week and hope that solves the problem.
Thanks,
Stefan- This reply was modified 11 years ago by Alcadis.
November 25, 2013 at 6:10 pm in reply to: Javascript problem? Slider and Search stopped working #193029Thanks, this solved my problem on the single blog page.
But here’s something else..
The default archive widget that I’m using is generating these breadcrumbs: ‘home/automatic concepts/2013/november’, where the ‘automatic concepts’ part is giving me a 404. How do I get rid of the ‘automatic concepts’ in these breadcrumbs?
EDIT: Even better, how do I change this part so it links to my blog overview page? I know I can use the 301 redirect now, but I would still need to change the text of the link.
- This reply was modified 11 years ago by Alcadis.
Sorry, but I still don’t get it. I should make all my changes in the functions.php of my child-theme like this?
function avia_after_parent_theme_setup() { // My new function goes here } add_action( 'after_setup_theme', 'avia_after_parent_theme_setup', 10);
Cause if I change the ‘avia_title’ function from enfold-functions.php, and put this in the functions.php of my child-theme, nothing happens.
Hi Josue,
Thanks for your reply. I allready found that post and it didn’t mention anything about editing .php files in your child theme.
I want to load the .php files from the enfold theme first, and then have the changes in my child overrule the regular enfold theme. Is there some code to get this done?
-
AuthorPosts