halben
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Remove by Author and Category from PostsThanks, I’ll try it out.
Forum: Fixing WordPress
In reply to: Remove by Author and Category from Poststwenty-twelve.
I want to create a function/add_filter in my child’s functions.php file.
Forum: Fixing WordPress
In reply to: Proper way to remove in wp-login.php default fileFigured it out. Sorry for posting.
Forum: Fixing WordPress
In reply to: Limit breadcrumbs lengthIt’s avada theme from theme forest.
Forum: Fixing WordPress
In reply to: Limit breadcrumbs lengthIt’s part of the theme.
Forum: Fixing WordPress
In reply to: Limit breadcrumbs lengthI apologize.
What I want to do is when I navigate to another page, for example,
to events, my breadcrumbs looks like this:Home / Events / This title of the posts is way too long and needs to be shorten
So I need to shorten the post title in the bread crumb. Any help would be greatly appreciated. Thank you.
Forum: Fixing WordPress
In reply to: Added JS file shown in view page, but gives 404 error when clicked**Okay, I figured it out.**
I had my scripts folder in the child theme directory. Instead of using “get_template_directory_uri()”, which gets the directory from the parent’s theme folder, I have to user “get_stylesheet_directory_uri()” to get the fold from the child theme.
Thanks for the assistance! It was my small mistake.
Forum: Fixing WordPress
In reply to: Added JS file shown in view page, but gives 404 error when clickedThis is the error I get in the console check:
404 (Not Found) somewebsite.com/:79
Resource interpreted as Image but transferred with MIME type text/htmlThank you Christian.
add_action('wp_enqueue_scripts', 'load_javascript_files'); function load_javascript_files() { wp_register_script('ajax_call_mkto', get_template_directory_uri() . 'js/marketo_wp_ajax.js', array('jquery'), true ); wp_enqueue_script('ajax_call_mkto'); }
Is this correct?
Using either of those seems to be the properway.
Thank you,
HalbenForum: Fixing WordPress
In reply to: Member profile update WPDB and trigger 3rd party DB update questionThanks, that might just work.
Forum: Fixing WordPress
In reply to: Registration submit button only works once. Need helpIn my functions.php, I have the following registration validation hook:
add_action('template_redirect', 'register_a_user');
Could
template_redirect
be causing the problem?Forum: Fixing WordPress
In reply to: Registration submit button only works once. Need helpThanks for replaying,
On the custom registration page before pressing the submit button, the form action is
https://xxxxx.xxx/register/?do=register
.But when I click the submit button, it shows the necessary errors. Then i checked the view source again and the Form tag is gone. It only shows the ul/li tags for each fields.
-_- Any idea?
Forum: Hacks
In reply to: Preg_match not returning error?I figured it out. I’m a noob.
I forgot
!preg_match
. Thanks for replying though.