CodySP
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Adding Animate.css to WordPress Login ScreenHey Evan,
Sorry for the late reply, had to head out for a shift!
I added animate.js and the functions above. Animate.js loads in the inspector but it’s just not coming together and the login screen remains static. It’s rather perplexing! What should the next step be?
Forum: Fixing WordPress
In reply to: Adding Animate.css to WordPress Login ScreenHey Evan,
I started looking into Javascript on the login page when I came across a code snippet someone posted when they we’re trying to do the same thing. I’ve made adjustments to the snippet and the JS file is showing up in the inspector.
add_action( 'login_enqueue_scripts', 'custom_login_css' ); add_action( 'login_enqueue_scripts', 'enqueue_my_script' ); function enqueue_my_script( $page ) { wp_enqueue_script( 'animate.js', '/wp-content/themes/flavor/js/animate.js', null, null, true ); }
The question is, do I need to define it in the wp-login.php file itself and if so, how would the string be assembled?
Forum: Fixing WordPress
In reply to: Adding Animate.css to WordPress Login ScreenHey Evan!
WordPress sure can be a fickle thing, eh? I’ll keep the JS file saved and at the ready while we scratch our heads! I can only think that at this point, It’d be silly to quit now after coming this far. I’d like the time you’ve spent in helping me over the last two days to bare some fruit!
From the sound of things though, we’re almost there! We would need to add another function in order for WordPress to read the JS file, right?
Cody
Forum: Fixing WordPress
In reply to: Adding Animate.css to WordPress Login ScreenHey Evan,
I really hate to make this process more difficult on you, but I’ve only worked with Javascript and jQuery plugins a tiny bit in the past. I wouldn’t know how to write or apply it off hand. It’s on my list of To-Do’s though!
Would you mind sending an example my way?
Cody
Forum: Fixing WordPress
In reply to: Adding Animate.css to WordPress Login ScreenAt this point, I’ll let you tackle the editor yourself if you so chose! Haha.
You can check out the login page https://gamegrit.com/wp-login.php here
Let me know if you have any questions!
Forum: Fixing WordPress
In reply to: Adding Animate.css to WordPress Login ScreenHey Evan,
now that we know the function works, I know that I’m now doing something wrong on my end. Animate.css is being loaded, but the effect won’t appear. I’ve been playing around with the div tag but am coming up short.
This screenshot shows the resources on the Wp-login page.
The thing is, it all looks right, but clearly it isn’t! It made me think of this image, which makes me laugh everytime.
https://ninjahumor.com/wp-content/uploads/2013/05/My-code-doesnt-work-I-have-no-idea-why-My-code-works-I-have-no-idea-why.jpgBack to staring at code strings!
CodyForum: Fixing WordPress
In reply to: Adding Animate.css to WordPress Login ScreenHey Evan,
for some reason the code in the function is displayed on the login page after the first line (See below)
https://cptgaming.net/images/ef1fd41f8c3e864fbfbb.pngWhich I believe is
wp_register_style('animate.css','path/to/animate.css'); wp_enqueue_style('animate.css');
Right?
Cody
Forum: Fixing WordPress
In reply to: Adding Animate.css to WordPress Login ScreenHey Evan,
Thanks for getting back to me so quickly! PHP isn’t my most fluent language, so please be patient with me! I added your function to my functions.php file and I have a few images to show!
A screen of your function as it appears in my WordPress editor
https://cptgaming.net/images/5dc241bb753a70b35e8c.png
An attempt to edit the Login ID in wp-login.php
https://cptgaming.net/images/b4af690c952f0ee5c01b.pngThe login screen
https://cptgaming.net/images/dc6e0bc8428490d278de.pngNot quite the desired effects, but it’s better then what I had yesterday!
Forum: Fixing WordPress
In reply to: Author Page 404 ErrorAll of these new E-mails saying I had replies. I was hoping for good news!
Hey Krishna,
I’m not entirely fluent with PHP, but that’s the default code string in the tribal theme that seems to be causing the problem with linking to Authors pages. What do you make of it, and what do you believe I should do?
Thanks a million.
Forum: Fixing WordPress
In reply to: Author Page 404 ErrorI’ve narrowed the problem down to this could string. This is what determines the link on the main page, that leads to a 404 not found error when trying to access the author.
<h2><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <h3><?php the_time('F jS, Y') ?> | By <a href="author/<?php the_author() ?>"><?php the_author_meta('first_name'); ?></a></h3> <?php the_content('Continue reading »'); ?>
Forum: Fixing WordPress
In reply to: Author Page 404 ErrorIt appears to be the theme I’m using. It’s trying to redirect to /author/cody spielvogel instead of something like twenty eleven redirects too author=1
Any suggestions?
Forum: Fixing WordPress
In reply to: Author Page 404 ErrorHey Krishna,
Unfortunately that didn’t work for me, I reset my permalinks to default and when click the authors name I still receive the
Page not found error.