halben
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how should I call this file into my child's function.phpThanks.
Forum: Fixing WordPress
In reply to: how should I call this file into my child's function.phpI think
-
get_template_directory()
points to the parent theme.
After some researching, I think
-
get_stylesheet_directory()
points to the child theme.
Am I correct?
Forum: Fixing WordPress
In reply to: how should I call this file into my child's function.phpHrmm, get_template_directory() is for getting files from the parent theme I think.
I think this is the one I need to use:
When you need to include files that reside within your child theme’s directory structure, you will use get_stylesheet_directory(). Because the parent template’s style.css is replaced by your child theme’s style.css, and your style.css resides in the root of your child theme’s subdirectory, get_stylesheet_directory() points to your child theme’s directory (not the parent theme’s directory).
Here’s an example, using require_once, that shows how you can use get_stylesheet_directory when referencing a file stored within your child theme’s directory structure.
What do you think?
require_once( get_stylesheet_directory() . ‘/my_included_file.php’ );
Forum: Fixing WordPress
In reply to: how should I call this file into my child's function.phpThanks, I’ll try that.
Forum: Hacks
In reply to: Add custom register link to menuWorks like a charm. Thanks. I’ll mark this thread resolve.
Forum: Fixing WordPress
In reply to: Inserting default WP registration in custom page helpUpdate: I now got it to work by changing form action to:
action="<?php echo site_url('wp-login.php?action=register', 'login_post'); ?> "
Is there a way as to how I can also access the js(or something) file that does the validation?
Forum: Plugins
In reply to: Registration form in it's own page?Thanks for helping out lee. Any help or tips?
Forum: Plugins
In reply to: Registration form in it's own page?<?php echo wp_registration_url(); ?>
I think the code above kind of does the trick but when I added it to the custom registration page, it only shows the link. Any idea?
Forum: Plugins
In reply to: Registration form in it's own page?I tried TML plugin and it’s works pretty good but I want to stay away from plugins. I know that for the custom login page, you can create a new template and insert
<?php wp_login_form($args); ?>
. Is there a way to do it for the custom registration page? I want to export the full registration WP default page to a custom page. I hope I’m not confusing anyone.Forum: Plugins
In reply to: Registration form in it's own page?Is there a custom way to do it?
Forum: Hacks
In reply to: custom login/logout item to menuThat did the trick.
Thanks,
esmiForum: Hacks
In reply to: custom login/logout item to menuI’ll look into it and get back to you.
Forum: Hacks
In reply to: custom login/logout item to menuBesides that, I tried commenting out $redirect and ran a test. Nothing shows up. Could it be that it’s not reading the right theme location?
theme location : Top Navigation should be ‘top’ I assume?
Forum: Hacks
In reply to: custom login/logout item to menuWould that cause the links not to be displayed?
Forum: Hacks
In reply to: custom login/logout item to menuCorrection:
The problem is, it’s “not” showing anything. Can anyone please help fix this?