Forum Replies Created
-
AuthorPosts
-
You can close the topic.
Rikard,
That worked great! Thanks for the tip!
The CSS fixed the not scrolling issue. I have some other things I need to workout myself, but that’s beyond the scope. Thanks!
Jordan,
I tried placing it my child theme’s style.css file, flushing the cache, and reloading the page. That didn’t work. Then I put the code in the quick css section, flushed the cache, and reloaded the page. This time, it did work. Do you know why?
The user profile page.
Jordan,
I updated the credentials to match what I sent you just now. Please try it again!
This reply has been marked as private.Wow, thanks for the help! That solved my problem. That one’s been racking my brain for a week now.
I also tested this by just adding the function (welcome_user) directly in the functions.php file and creating the shortcode there. Same problem occurs.
This is the simplest example of the problem.
function welcome_user(){ $current_user = wp_get_current_user(); if( $current_user -> ID == 0){ //if no one is logged in, redirects to login page ?> <META HTTP-EQUIV="Refresh" CONTENT="0;URL=index.php/login"> <?php } else { echo'<H1>Welcome ' . $current_user -> user_firstname . '!</H1>'; } }
This is saved in the wp-content folder as a file named the same as the function. In the functions.php file I have:
include(WP_CONTENT_DIR . '/welcome_user.php'); add_shortcode('welcome_user', 'welcome_user');
Then I added the shortcode to the page. I’ve tried both the textbox and the code block. Both work when it comes to adding the content, except that it loads the shortcodes content before it adds anything else in the avia layout builder.
-
AuthorPosts