Forum Replies Created
-
Author
-
ThrewTheNevRParticipant
remeber the code `
div#text-5 h4:before {
content: “\f2bd”;
font-family: fontawesome !important;
padding-right: 10px;
}`i am unable to do this with a new widget using a different icon
COPY CODEdiv#text-7 h4:before { content: "\f2bd"; font-family: fontawesome !important; padding-right: 10px; }
any ideas?
ThrewTheNevRParticipantI tried to add this code to the sidebar.php file hoping icons would show up on the main sidebar.
COPY CODE<?php wp_register_style('fontawesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css', array(), false, 'all'); wp_enqueue_style( 'fontawesome'); ?>
That didn’t work.
Idk if I should try another alternative maybe manually adding icons codes.April 26, 2017 at 03:19 in reply to: Show registered user email address on email confirmation page #159605ThrewTheNevRParticipantMk so I figured it out,
The code isCOPY CODEThanks for registering,<b><?php echo $_POST["signup_username"]; ?></b> You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to <b><?php echo $_POST ["signup_email"] ;?><b>
The reason it didn’t work before was I had the arrays wrong. I used print_r to double check and now have it working.
With that being said I have taken out my function that automatically logs in new registered users and also took out my $get current_user code.
Everything is working as it should.
Only if I double checked 2 weeks ago would of saved me a headach.but I’m still new and learning php and with so much documentation things easily over looked.Type guys.
April 15, 2017 at 18:15 in reply to: Show registered user email address on email confirmation page #158598ThrewTheNevRParticipantJust a quick update.
I’ve been searching nonstop threw documentation/Codex and I came up with this code,COPY CODEglobal $wpdb; /* lets retrieve the email of users who signed up $wpdb */ function get_user_by( ‘email’,‘null’ ) $user_email = $wpdb->wpjm_signups (‘user_email’); if ($signups) { echo "sent to " . $user_email ; } else { echo "email not listed."; } //Creating a shortcode to display signup email add_shortcode( 'user_email');
I placed it in my themes functions.php file but had to delete it due to the 500 error.
Am I on the right track?
-
AuthorPosts