To increase the PHP Maximum Execution Time do the following:
Step 1: Locate the .htaccess file inside the root of your WordPress installation (located in the same folder as your /wp-content/ and /wp-admin/ directories) using an FTP client or file manager in your web hosting control panel (if you can’t find it see why you can’t find the .htaccess file and how to find it or if you’re not sure how to do this, ignore the steps below and contact your web host who can do this for you).
Step 2: Paste this code in your .htaccess file:
php_value max_execution_time 180
Step 3: Now save the file.
Note: If you still get the error, try increasing the value to 600.
Step 1: If you're not able to edit .htaccess file manually, then you can install and activate the WP Maximum Execution Time Exceeded plugin. That’s all. The plugin works out of the box and increases the maximum execution time to 300 seconds.
The theme requires at least PHP 7.3 or above because this is what WordPress itself recommends.
In most cases you cannot update the PHP version yourself and need to contact your host about this. The upgrade process is easy and should be something your host can do for you without impacting your website or charging you a fee. Here's an email you can send to your hosting company:
Dear host,
I'm running a site on one of your servers and WordPress has listed PHP 7.2 as the recommended version on their requirements page: https://wordpress.org/about/requirements/
Can you please let me know if my hosting supports PHP 7.2 or higher and how I can upgrade?
Looking forward to your reply.
If you have a VPS server, see How to upgrade from PHP 5.
If your host doesn't support PHP 5.6 or higher, you will need to find a host that does. We recommend DreamHost which supports PHP 5.6 or higher. If you contact another host, be sure to ask them which PHP version your website will run on before purchasing.
The theme adds icons to the profile menu navigation tabs. However if you're using a plugin to add new profile tabs or want to change the existing icons you can do this using CSS. Go to Theme Options > Styling and in the CSS Code box add:
.gp-theme #buddypress #object-nav li a:before { content: '\f1db'; } .gp-theme #buddypress #object-nav #activity-personal-li a:before { content: '\f03a'; } .gp-theme #buddypress #object-nav #xprofile-personal-li a:before, .gp-theme.gp-fontawesome5 #buddypress #object-nav #xprofile-personal-li a:before { content: '\f2c0'; } .gp-theme #buddypress #object-nav #blog-personal-li a:before, .gp-theme #buddypress #object-nav #blogs-personal-li a:before { content: '\f0e8'; } .gp-theme #buddypress #object-nav #events-personal-li a:before { content: '\f073'; } .gp-theme #buddypress #object-nav #notifications-personal-li a:before, .gp-theme.gp-fontawesome5 #buddypress #object-nav #notifications-personal-li a:before { content: '\f0a2'; } .gp-theme #buddypress #object-nav #messages-personal-li a:before, .gp-theme.gp-fontawesome5 #buddypress #object-nav #messages-personal-li a:before { content: '\f003'; } .gp-theme #buddypress #object-nav #friends-personal-li a:before { content: '\f234'; } .gp-theme #buddypress #object-nav #groups-personal-li a:before { content: '\f0c0'; } .gp-theme #buddypress #object-nav #nav-forum-groups-li a:before, .gp-theme #buddypress #object-nav #forums-personal-li a:before { content: '\f27a'; } .gp-theme #buddypress #object-nav #media-personal-li a:before { content: '\f008'; } .gp-theme #buddypress #object-nav #settings-personal-li a:before { content: '\f013'; } .gp-theme #buddypress #object-nav #home-groups-li a:before { content: '\f015'; } .gp-theme #buddypress #object-nav #members-groups-li a:before, .gp-theme.gp-fontawesome5 #buddypress #object-nav #members-groups-li a:before { content: '\f2c0'; } .gp-theme #buddypress #object-nav #invite-groups-li a:before { content: '\f0c0'; } .gp-theme #buddypress #object-nav #media-groups-li a:before { content: '\f008'; } .gp-theme #buddypress #object-nav #admin-groups-li a:before { content: '\f013'; } .gp-theme #buddypress #object-nav #courses-personal-li a:before, .gp-theme #buddypress #object-nav #nav-experiences-groups-li a:before { content: '\f19d'; }
This code controls all the existing tabs. You can replace each icon code above with one of the icon codes here.
If you want to add icons to new tabs you need to use your browser inspector to right click on the icon, select Inspect/Inspect Element and find the ID of the tag.
And then add this ID to your CSS code.
.gp-theme #buddypress #object-nav #groups-personal-li a:before { content: '\f03a'; }
If you see the following warning after importing the demo content:
Warning: Cannot assign an empty string to a string offset in /.../wp-includes/class.wp-scripts.php on line 454
This is being caused by the rtMedia plugin. In your admin panel, click rtMedia tab and save the page. This will remove the warning from your site.
Most BuddyPress page templates can be modified by adding the directory structure and file within your theme folder to override the default styling as explained here: https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
However beyond this since BuddyPress is a third party plugin and is not part of the theme you should contact BuddyPress support at http://buddypress.org/support where they will be able to help you with modifying BuddyPresss templates.
While the theme completely supports BuddyPress, and even has customized BuddyPress elements, support does not cover customisations (click here for the support policy), this both includes customising the theme and third party plugins.
To increase the WordPress Upload Limit do the following:
Step 1: Locate the php.ini file inside the wp-admin directory (if you’re not sure how to do this, ignore the steps below and contact your webhost who can do this for you).
Step 2: Find the following line in your php.ini file:
upload_max_filesize
Step 3: Increase the value to 64MB or higher and save the file.
Step 4: If you still have issues, look for this file in your root directory and make the same changes.
This is probably because of a permission issues with the font used to display the icons. Using an FTP client set lib/fonts/ and lib/fonts/fontawesome/ permissions to 755 and the font file permissions to 644.
The breadcrumbs shown in the demo are added by the Yoast WordPress SEO plugin. Install this plugin and then go to SEO -> Search Appearance and click the Breadcrumbs tab and click Enabled.
To increase the PHP Memory Limit do the following:
Step 1: Locate the wp-config.php file inside the root of your WordPress installation (located in the same folder as your /wp-content/ and /wp-admin/ directories) using an FTP client or file manager in your web hosting control panel (if you’re not sure how to do this, ignore the steps below and contact your web host who can do this for you).
Step 2: Paste this code in your wp-config.php file just before the line that says “That’s all, stop editing! Happy blogging.”:
define( 'WP_MEMORY_LIMIT', '256M' );
Step 3: Now save the file.
Note: If this solution does not work then this means your web hosting service provider does not allow WordPress to increase PHP memory limit. You will need to ask your web host to increase this limit for you.
Step 1: Locate the php.ini file inside the /wp-admin directory using an FTP client or file manager in your web hosting control panel (if you’re not sure how to do this, ignore the steps below and contact your web host who can do this for you).
Step 2: Paste this code in your .php.ini file:
memory_limit 256MB;
Step 1: Locate the .htaccess file inside the root of your WordPress installation (located in the same folder as your /wp-content/ and /wp-admin/ directories) using an FTP client or file manager in your web hosting control panel (if you can’t find it see why you can’t find the .htaccess file and how to find it or if you’re not sure how to do this, ignore the steps below and contact your web host who can do this for you).
Step 2: Paste this code in your .htaccess file:
php_value memory_limit 256M
Step 3: Now save the file.
Note: If you encounter any errors while trying to set the memory limit using these two methods then it means your hosting provider has locked this setting and you will have to contact them to increase this limit.
You can use the Paid Membership Pro plugin to create membership levels, charge for access (or make it free) and restrict specific content.
You'll also need to use the BuddyPress Add On to control access to specific BuddyPress content.
Maximum input vars limit the number of input variables which affect menus and theme options in the Aardvark theme. To increase the Maximum input vars do the following:
Step 1: Locate the .htaccess file inside the root of your WordPress installation (located in the same folder as your /wp-content/ and /wp-admin/ directories) using an FTP client or file manager in your web hosting control panel (if you can’t find it see why you can’t find the .htaccess file and how to find it or if you’re not sure how to do this, ignore the steps below and contact your web host who can do this for you).
Step 2: Paste this code in .htaccess file:
php_value max_input_vars 1000 php_value suhosin.get.max_vars 1000 php_value suhosin.post.max_vars 1000 php_value suhosin.request.max_vars 1000
Step 3: Now save the file.
Step 1: Locate the php.ini file inside the /wp-admin directory using an FTP client or file manager in your web hosting control panel (if you’re not sure how to do this, ignore the steps below and contact your web host who can do this for you).
Step 2: Paste this code in your .php.ini file:
max_input_vars = 1000 suhosin.get.max_vars = 1000 suhosin.post.max_vars = 1000 suhosin.request.max_vars = 1000
Step 3: Now save the file.
Step 4: If you still have issues, look for this file in your root directory and make the same changes.
You will need to be use the Paid Membership Pro plugin to create membership levels, charge for access and restrict specific content. You'll also need to use the BuddyPress Add On to control access to specific BuddyPress content. However this plugin does not allow you to control access to the members directory and profiles by default.
1) To add this functionality in your child theme's functions.php file add:
/** * Restrict viewing of the members directory and individual profiles if the user doesn't have access * */ if ( defined( 'PMPRO_VERSION' ) && defined( 'PMPROBP_DIR' ) && function_exists( 'bp_is_active' ) && ! function_exists( 'ghostpool_pmpro_bp_restrict_member_viewing' ) ) { function ghostpool_pmpro_bp_restrict_member_viewing() { if ( ! function_exists( 'pmpro_getMembershipLevelForUser' ) ) { return; } if ( ! is_buddypress() ) { return; } global $current_user; $user_id = $current_user->ID; if ( ! empty( $user_id ) ) { $level = pmpro_getMembershipLevelForUser( $user_id ); } if ( ! empty( $level ) ) { $level_id = $level->id; } else { $level_id = 0; // non-member user } if ( ! bp_is_user() && bp_is_members_component() && $level_id === 0 ) { //pmpro_bp_redirect_to_access_required_page(); } if ( bp_is_user() && $level_id === 0 ) { pmpro_bp_redirect_to_access_required_page(); } } add_action( 'template_redirect', 'ghostpool_pmpro_bp_restrict_member_viewing' ); }
3) You can control what membership levels can access the members directory by editing the following code:
if ( ! bp_is_user() && bp_is_members_component() && $level_id === 0 ) { //pmpro_bp_redirect_to_access_required_page(); }
Change 0 to whatever level cannot access the members directory. 0 refers to members without any level. Uncomment "pmpro_bp_redirect_to_access_required_page();" to enable the restriction.
4) You can control what membership levels can access the member profiles by editing the following code:
if ( bp_is_user() && $level_id === 0 ) { pmpro_bp_redirect_to_access_required_page(); }
Change 0 to whatever level cannot access the members directory. 0 refers to members without any level. Comment "pmpro_bp_redirect_to_access_required_page();" to disable the restriction.
Modifying Registration Fields:
BuddyPress provide documentation on how to modify the registration fields here: https://codex.buddypress.org/getting-started/guides/modifying-the-registration-form/
Modifying Registration Templates:
If you're using BuddyPress, then the registration page is being generated by BuddyPress and not the theme. You can add the following directory within your child theme folder /buddypress/members/register.php to override the default registration template.
To increase the Post Maximum Size do the following:
Step 1: Locate the php.ini file inside the /wp-admin directory using an FTP client or file manager in your web hosting control panel (if you’re not sure how to do this, ignore the steps below and contact your web host who can do this for you).
Step 2: Find the following line in your php.ini file:
post_max_size
Step 3: Increase the value to 64MB or higher and save the file.
Step 4: If you still have issues, look for this file in your root directory and make the same changes.
In your child theme's functions.php add:
function ghostpool_wpp_postviews( $post_id ) { // Accuracy: // 10 = 1 in 10 visits will update view count. (Recommended for high traffic sites.) // 30 = 30% of visits. (Medium traffic websites) // 100 = Every visit. Creates many db write operations every request. $accuracy = 50; if ( function_exists( 'wpp_get_views' ) && ( mt_rand( 0, 100 ) < $accuracy ) ) { update_post_meta( $post_id, 'views_total', wpp_get_views( $post_id ) ); //update_post_meta( $post_id, 'views_daily', wpp_get_views( $post_id, 'daily' ) ); //update_post_meta( $post_id, 'views_weekly', wpp_get_views( $post_id, 'weekly' ) ); //update_post_meta( $post_id, 'views_monthly', wpp_get_views( $post_id, 'monthly' ) ); } } function ghostpool_views_meta_key_func() { return 'views_weekly' } add_filter( 'ghostpool_views_meta_key' ,'ghostpool_views_meta_key_func' );
Uncomment the post meta field you want to use. To store the weekly views of posts use:
function ghostpool_wpp_postviews( $post_id ) { // Accuracy: // 10 = 1 in 10 visits will update view count. (Recommended for high traffic sites.) // 30 = 30% of visits. (Medium traffic websites) // 100 = Every visit. Creates many db write operations every request. $accuracy = 50; if ( function_exists( 'wpp_get_views' ) && ( mt_rand( 0, 100 ) < $accuracy ) ) { update_post_meta( $post_id, 'views_total', wpp_get_views( $post_id ) ); //update_post_meta( $post_id, 'views_daily', wpp_get_views( $post_id, 'daily' ) ); update_post_meta( $post_id, 'views_weekly', wpp_get_views( $post_id, 'weekly' ) ); //update_post_meta( $post_id, 'views_monthly', wpp_get_views( $post_id, 'monthly' ) ); } } function ghostpool_views_meta_key_func() { return 'views_weekly' // Replace with the field name you want to order by in filters } add_filter( 'ghostpool_views_meta_key' ,'ghostpool_views_meta_key_func' );
To update the new views data for each post find:
$accuracy = 50;
Replace with:
$accuracy = 100;
Now when each post is viewed by you or your visitors on the frontend it will update the views data.
You only need to do this step once. When you are done change the $accuracy value again.
WordPress is adding the admin bar to your website, not the theme. You can use the following plugin to disable the admin bar: https://en-gb.wordpress.org/plugins/hide-admin-bar/
If you're using BuddyPress to hide the admin bar for logged out users go to Settings > BuddyPress > Options and disable the Toolbar option.
Step 1: Go to Appearance > Menus and create or edit an existing menu.
Step 2: Click the Screen Options tab in the top right corner of the page and make sure the BuddyPress Member option is checked.
Step 3: Now scroll down the page and you will see a BuddyPress tab where you can add BuddyPress profile links to your selected menu.
To add new fonts to your website do the following:
Step 1: Upload your fonts with the format (.ttf, .otf, .woff, .eot, .woff2) to your child theme in the directory wp-content/themes/child-theme-name/fonts/
Step 2: Create a new file called fonts.css and upload it to wp-content/themes/child-theme-name/fonts/. Add the following code to this file:
@font-face { font-family: 'My Web Font 1'; font-style: normal; font-weight: 500; src: url('webfont.woff2') format('woff2'), /* Super Modern Browsers */ url('webfont.woff') format('woff'), /* Pretty Modern Browsers */ url('webfont.ttf') format('truetype'); /* Safari, Android, iOS */ }
Step 3: In your child theme's functions.php file add:
function ghostpool_enqueue_new_fonts() { wp_enqueue_style( 'ghostpool-new-fonts', get_stylesheet_directory_uri() . '/fonts/fonts.css' ); } add_action( 'wp_enqueue_scripts', 'ghostpool_enqueue_new_fonts' ); function ghostpool_add_new_font_families( $output ) { $new_fonts = array( 'My Web Font 1', ); $output = array_merge( $output, $new_fonts ); return $output; } add_filter( 'ghostpool_font_families', 'ghostpool_add_new_font_families' );
Where 'My Web Font 1' is the display name.
Go to Settings -> Discussion and make sure Allow people to post comments on new article is checked.
Now on any page click the Screen Options button in the top right corner of the page and check the Discussion option.
Since WordPress 4.3 comments are not enabled on pages by default - to enable them use the following plugin: https://wordpress.org/plugins/no-page-comment/
Yes. You can import more than one demo on your site so you can use different pages and features from each demo.
However, you can only use one set of theme options on your site. So if you import your first demo, this will import the theme options from that demo, which includes all the site colours, logo and typography. If you import another demo, the theme options from this demo will be used instead for all pages.
Options like page, header and footer layout can be changed on individual pages so these settings can be set to what you want if a demo import changes them for your existing pages.
The full version of WPBakery Page Builder (previously known as Visual Composer) comes with this theme. You do not need to activate a license to use it.
Free updates for the plugin will be included whenever the theme itself is updated. So after updating the theme you will see a notice at the top of your backend pages to update the WPBakery Page Builder if necessary.
You only need a license for two reasons:
1) You want to receive automatic plugin updates directly from the WPBakery developers rather than waiting for them to be included in a theme update.
2) You want to access the Template Library for additional page builder templates.
To get a license you need to purchase the plugin yourself.
In your child theme's functions.php add the following:
function ghostpool_custom_captcha() { /* Validation code goes here */ return $captcha; } function ghostpool_custom_captcha_display() { /* Code to display captcha goes here */ }
You will need to get the validation code and display code for the captcha plugin that the plugin website should provide.
The forums seen in the demo site are created using the bbPress plugin. Please install and activate this plugin from Plugins > Add New and search for "bbpress".
Once you've activated the plugin your forums should be located at http://my-domain.com/forums
To set up the forum layout seen in the theme demo you need to create category parents for each group of forums. For example on the demo forum (https://aardvark.ghostpool.com/original/forums/), "Forum Category 1" is a forum category and it has three child forums called "Forum 1", "Forum 2" and "Forum 3".
Go to Forums > New Forum to create a header and on the right hand side select "Category" from the Type dropdown menu.
To create a forum under this header go to Forums > New Forum and on the right hand side select "Forum" from the Type dropdown menu.
This is how the final setup should look:
Add the following to your child theme's functions.php file:
function ghostpool_custom_page_settings( $settings ) { // Custom page template if ( is_page_template( 'custom-page-template.php' ) ) { $settings['header'] = 'gp-fullwidth-page-header'; $settings['layout'] = 'gp-left-sidebar'; } // Custom post type if ( is_singular( 'custom_post_type' ) ) { $settings['header'] = 'gp-standard-page-header'; $settings['layout'] = 'gp-right-sidebar'; } // Attachment page if ( is_attachment() ) { $settings['header'] ='gp-page-header-disabled'; $settings['layout'] = 'gp-no-sidebar'; } return $settings; } add_filter( 'ghostpool_page_settings', 'ghostpool_custom_page_settings' );
In this example you're loading your own header and layout settings for a custom page template, custom post type and attachment page. You can see all the available settings from aardvark/lib/framework/settings/load-settings.php.
If you're trying to remove the latest activity text from your profile header and it doesn't exist in the activity stream you can manually delete it. In your child theme's functions.php file add the following:
delete_user_meta( $user_id, 'bp_latest_update' );
Where $user_id is the ID of the user you want to delete the text for. In most cases the admin account has a user ID of 1 e.g.
delete_user_meta( 1, 'bp_latest_update' );
Remove the code from functions.php when this has been successfully removed.
WordPress 5.0 introduced a new page editor called Gutenberg. Please ensure you have updated to the latest version of the theme and WPBakery Page Builder. To do this refer to your theme documentation.
Once you've done this you should see a blue WPBakery Page Builder button at the very top of your page. Clicking this disables the Gutenberg editor for this page so you can use the WPB page builder.
You can disable the Gutenberg editor permanently from WPBakery Page Builder > General Settings > Disable Gutenberg Editor.
For current members:
BuddyPress will only show users in the members directory if they have logged into to their account. You can get around this and activate all user accounts by installing and activating the Retroactive BP User Activity plugin.
If this doesn't work add the following to your child theme functions.php file:
update_metadata( 'user', '', 'last_activity', date( 'Y-m-d H:i:s' ) );
Remove this code once it has updated the last activity date for all members (when all members are shown on your members page).
For new members that register:
To automatically update new members in the members directory add the following to your child theme functions.php file:
function ghostpool_show_all_bp_members( $user_id ) { add_user_meta( $user_id, 'last_activity', date( 'Y-m-d H:i:s' ) ); } add_action( 'bp_core_activated_user', 'ghostpool_show_all_bp_members' );
I'm not sure why I get this question so often as creating groups has nothing to do with the theme, it's part of the BuddyPress plugin. However since I'm always asked please check the following:
1) Go to Settings > BuddyPress and under the Components tab make sure User Groups is enabled.
2) Go to Settings > BuddyPress and under the Pages tab make sure a page is selected from the User Groups drop down menu.
3) To add a link to this page go to Appearance > Menus and add this page to one of your menus.
4) If you can't create user groups from the frontend, go to Settings > BuddyPress and under the Settings tab enable Group Creation if you want to allow all users to create groups. If you still can't create groups deactivate all plugins (except BuddyPress) to see if this resolves the issue. If it does, reactivate the plugins one by one to fix the problem plugin.
If no plugin is causing the issue activate the Twenty Seventeen theme, if this doesn't resolve the issue, the theme is not causing this problem and you will need to contact BuddyPress support who will be able help you.
Go to Settings > BuddyPress, click the Options tab and make sure Allow registered members to upload cover images is checked. Now go to your BuddyPress profile page, by clicking your username anywhere on the site and click Change Cover Image link.
If you're having any issues with a theme you've just purchased this can be incredibly frustrating, however in most cases the issues can be quickly resolved.
If you have not yet downloaded the theme you can request a refund, no questions asked, from: https://themeforest.net/refund_requests/new
If you have downloaded the theme this means you now have a copy of the theme and will only be eligible for a refund if it meets one or more of the following criteria:
Before I can issue a refund I need to determine that the theme is causing your issues (in most refund request cases, it turns out not to be).
To do this please open a support ticket at https://ghostpool.ticksy.com and describe your problems in as much detail as possible, providing any error messages you receive and the steps to replicate the problem.
If it does turn out to be a theme issue and I cannot fix it, you will be issued with a full refund.
You will not receive a refund in the following situations:
This is because you have activated the Google Captcha plugin but not set it up. If you don't want to use a captcha on the login form, go to Plugins > Installed Plugins and deactivated the Google Captcha plugin.
If you do want to use this plugin, you'll need to set it up. Go to Google Captcha > Settings and click the Get the API Keys link to generate a site and secret key which you need to add to the plugin.
If you are using the PMPro BuddyPress Addon this plugin restricts access to BuddyPress features unless the user has the required membership.
If you don't want to restrict access to any BuddyPress feature just deactivate this plugin, otherwise do the following:
Step 1: Go to Memberships > PMPro BuddyPress and find the Unlock BuddyPress? option and select "Yes - Give non-member users access to specific features".
Step 2: Now scroll down to the Include in Member Directory option and select "Yes".
Step 3: You can now set the Unlock BuddyPress? option back to "Yes - Give non-member users access to all of BuddyPress" if you wish.
You must now use the Envato Market WordPress plugin to update the theme. When you do, sometimes you may see an update failed message. To fix this try the following:
1) Firstly, try clicking the update link again, sometimes it doesn't work first time around.
2) If this doesn't work, activate another theme so this theme becomes deactivated and then try updating the theme.
2) If this doesn't work, check your token has the correct permissions by going to Envato Market > Settings and clicking the Test API Connection button. If you get an error, create a new token.
3 If it still doesn't work it's possible Envato's API is down and you will need to try again later.
4) If things still don't work, don't worry, just download the theme update your ThemeForest Downloads page, locate the theme, click the green Download button and select the Installable WordPress file only option. Now go to Appearance > Themes and activate another theme so you can deactivate and delete this theme. Finally click the Add New and upload the zip file you just downloaded and activate the theme.
The issue is the page URL contains the activation link which does not work with the popup modal login window. To fix this use the BP Autologin on Activation plugin which automatically logs the user in after clicking the email activation link.
If after installing the theme it says it is broken or the style sheet is missing it's nothing to worry. This is one of the most common errors new users to WordPress experience. To upload the theme correctly do the following:
This is unlikely to be a theme issue and it is most likely server or plugin related.
To test this, activate the default Twenty Twenty-One theme (don't worry this won't affect your site content). If the issues still occur this means the theme is not causing the issue. Make sure whatever plugin you're using is set up correctly and that you have no typos in your email address.
If your server does not allow emails to be sent out try using the following plugin:
https://en-gb.wordpress.org/plugins/wp-mail-smtp/
For BuddyPress emails you will also need to add the following to your functions.php file:
add_filter( 'bp_email_use_wp_mail', '__return_true' );
To remove the "Designed & Developed By KAINELABS.COM" text go to Youzify > Profile Settings and disable Enable Account Copyright.
Step 1: In your child theme's functions.php file register your new menu items by adding the following:
function ghostpool_register_new_menus() { register_nav_menus( array( 'gp-new-menu-1' => esc_html__( 'New Menu 1', 'aardvark' ), 'gp-new-menu-2' => esc_html__( 'New Menu 2', 'aardvark' ), ) ); } add_action( 'after_setup_theme', 'ghostpool_register_new_menus' );
This create two new menu areas.
Step 2: Now you need to tell the theme to use these menus on specific pages by adding the following to functions.php:
function ghostpool_custom_main_header_primary_nav() { $menu = ''; if ( is_page( 123 ) ) { $menu = 'gp-new-menu-1'; } elseif ( is_page( 456 ) ) { $menu = 'gp-new-menu-2'; } else { $menu = 'gp-main-header-primary-nav'; } return $menu; } add_filter( 'ghostpool_main_header_primary_nav', 'ghostpool_custom_main_header_primary_nav' );
This tells the theme to replace the main header primary menu with the menu "gp-new-menu-1" on the page with ID 123 and "gp-new-menu-2" on the page with ID 456. On all other pages it uses the original menu "gp-main-header-primary-nav".
You can do this for any of the theme menus using this method, just replace the filter name in step 2 with the following names:
If you've added an element on a post to display some items and click the page numbers or load more button the same items may be loaded. This is because some servers do not accept the standard pagination URL structures on posts (it should be fine on pages). If this is the case activate the child theme and add the following to the functions.php file:
function ghostpool_custom_pagenum_link( $link ) {
if ( is_single() ) {
return preg_replace( '~/page/(\d+)/?~', '?page=\1', $link );
} else {
return $link; }
}
add_filter( 'get_pagenum_link', 'ghostpool_custom_pagenum_link' );
If you are using the Youzify plugin it will uses its own page templates and styling options for the BuddyPress pages. Exceptions include the registration and login pages.
If you want to use the theme's BuddyPress page templates and styling options you will either need to disable the Youzify plugin or modify the Youzify page templates.
You can do this by creating a directory called "youzify" inside your child theme folder and placing all the template files you want to change inside that folder (preserving directories structure).
So your directory will look something like this:
"/wp-content/themes/your-theme/youzify/"
Example:
Let’s say you want to customize some text on BuddyPress Members directory page, you will be copying the file index.php
which is located here:
"\wp-content\plugins\youzify\includes\public\templates\members\index.php"
to here:
"/wp-content/themes/your-theme/youzify/members/index.php"
You will find all youzify templates on the path "youzify\includes\public\templates\"
This theme requires that you enable the BuddyPress Legacy template pack. To do this go to Settings > BuddyPress > Options and from the Template Pack dropdown menu select "BuddyPress Legacy" and click Save Settings.
When you import that demo data the images seen on the demo site are not imported, instead plain grey images are imported. This is done for two reasons:
1) These images are copyrighted and not licensed for distribution.
2) These images would increase the size and execution time of the import dramatically making it more likely the import failing.
If you are using BuddyPress then this plugin controls the registration emails not the theme. To change BuddyPress emails see: https://codex.buddypress.org/emails/
If you're not using BuddyPress you can add the following filters to your child theme's functions.php file:
// Change admin's registration notice email subject function ghostpool_registration_notice_subject( $blogname ) { return 'Hi [%s]'; } add_filter( 'ghostpool_email_registration_notice_subject', 'ghostpool_registration_notice_subject' ); // Change admin's registration notice email text function ghostpool_registration_notice_message( $message, $blogname, $user_login, $user_email ) { $message = sprintf( esc_html__( 'New user registration on your blog %s:', 'aardvark-plugin' ), $blogname ) . "\r\n\r\n"; $message .= sprintf( esc_html__( 'Username: %s', 'aardvark-plugin' ), $user_login ) . "\r\n\r\n"; $message .= sprintf( esc_html__( 'Email: %s', 'aardvark-plugin' ), $user_email ) . "\r\n"; return $message; } add_filter( 'ghostpool_email_registration_notice_message', 'ghostpool_registration_notice_message', 10, 4 ); // Change user's email subject function ghostpool_registered_user_subject( $blogname ) { return 'Hi [%s]'; } add_filter( 'ghostpool_registered_user_subject', 'ghostpool_registered_user_subject' ); // Change user's email text function ghostpool_registered_user_message( $message, $blogname, $user_login ) { $message = esc_html__( 'Hi there,', 'aardvark-plugin' ) . "\r\n\r\n"; $message .= sprintf( esc_html__( 'Welcome to %s.', 'aardvark-plugin' ), $blogname ) . "\r\n\r\n"; $message .= sprintf( esc_html__( 'Username: %s', 'aardvark-plugin' ), $user_login ) . "\r\n"; $message .= esc_html__( 'Password: [use the password you entered when signing up]', 'aardvark-plugin' ) . "\r\n\r\n"; $message .= esc_html__( 'Please login at', 'aardvark' ) . ' ' . wp_login_url() . "\r\n\r\n"; return $message; } add_filter( 'ghostpool_registered_user_message', 'ghostpool_registered_user_message', 10, 3 );
If a WPBakery Page Builder update is available you will see a notice in your dashboard. Unless you purchased the plugin separately you cannot update the plugin automatically. You will need to wait for a theme update to be released which will include the updated version of the WPBakery Page Builder which you can then update from Appearance > Install Plugins.
Please see:
https://rtmedia.io/docs/developers/add-remove-buddypress-tabs/
This theme uses WordPress's native image resize function add_image_size(). You can edit the theme's predefined image sizes by adding the following code to your child theme's functions.php file. You can change the image width, height and cropping options (including cropping position) for any of the image sizes. You will then need to run the Regenerate Thumbnails plugin after uploading these changes to recrop all your images to the new dimensions.
function ghostpool_image_sizes() { add_image_size( 'gp_small_image', 75, 75, true ); add_image_size( 'gp_list_image', 250, 135, true ); add_image_size( 'gp_square_image', 300, 300, true ); add_image_size( 'gp_featured_image', 864, 467, true ); add_image_size( 'gp_column_image', 727, 393, true ); add_image_size( 'gp_related_image', 414, 224, true ); add_image_size( 'gp_featured_box_small_image', 330, 240, true ); add_image_size( 'gp_featured_box_large_image', 600, 480, true ); add_image_size( 'gp_featured_box_full_image', 1260, 480, true ); }
If you want to add your own image sizes to the selection, instead of changing a predefined image, add the following code to your child theme's functions.php file and add your new image sizes as shown below:
function ghostpool_register_new_image_sizes() { add_image_size( 'ghostpool-new-image-name-1', 100, 100, true ); add_image_size( 'ghostpool-new-image-name-2', 500, 900, false ); } add_action( 'after_setup_theme', 'ghostpool_register_new_image_sizes' );
It is important that you keep the theme and bundled plugins (those plugins that came with the theme) up to date.
To update the theme please see: https://ghostpool.com/documentation/aardvark/getting-started/updating-the-theme/
Once you've updated the theme you'll likely need to update some of the bundled plugins. To update the bundled plugins please see: https://ghostpool.com/documentation/aardvark/getting-started/updating-the-plugins/
If you're using the Youzify plugin go to Youzify > General Settings > Wall Settings and disable the Privacy setting.
You may want to install the default WordPress theme in order to see if an issue still occurs when switching themes.
To install the default WordPress theme do the following:
All my themes work well with "Yoast SEO" WordPress plugin: https://wordpress.org/plugins/wordpress-seo/
If you're loading new posts using the Load More Button option in the Posts element it will load duplicate content if you have also set an Offset. To fix this add the following to your child theme's functions.php file:
function ghostpool_adjust_load_more_offset_pagination( $found_posts, $query ) { if ( ! is_admin() && ! $query->is_main_query() && isset( $query->query_vars['offset'] ) ) { $offset = $query->query_vars['offset']; return $found_posts - $query->offset; } else { return $found_posts; } } add_filter( 'found_posts', 'ghostpool_adjust_load_more_offset_pagination', 1, 2 ); function ghostpool_load_more_current_queries( $query ) { if ( is_admin() OR $query->is_main_query() ) { return; } if ( isset( $query->query_vars['offset'] ) ) { $offset = $query->query_vars['offset']; } else { return; } $posts_per_page = $query->query_vars['posts_per_page']; if ( $query->is_paged() ) { $page_offset = $offset + ( ( $query->query_vars['paged'] - 1 ) * $posts_per_page ); $query->set( 'offset', $page_offset ); } else { $query->set( 'offset', $offset ); } } add_action( 'pre_get_posts', 'ghostpool_load_more_current_queries' );
Make sure to change the $offset and $posts_per_page values to what you have set in your Posts element.
There has been a change to the way the Aardvark Child loads the parent and child style.css files. You will need to update your child theme functions.php to fix this. Find:
/** * Load parent style.css * */ if ( ! function_exists( 'ghostpool_enqueue_child_styles' ) ) { function ghostpool_enqueue_child_styles() { wp_enqueue_style( 'gp-parent-style', get_template_directory_uri() . '/style.css' ); } } add_action( 'wp_enqueue_scripts', 'ghostpool_enqueue_child_styles' );
Replace with:
/** * Load child theme style.css * */ if ( ! function_exists( 'ghostpool_enqueue_child_styles' ) ) { function ghostpool_enqueue_child_styles() { wp_enqueue_style( 'ghostpool-style', get_template_directory_uri() . '/style.css', array(), AARDVARK_THEME_VERSION ); wp_enqueue_style( 'ghostpool-child-style', get_stylesheet_directory_uri() . '/style.css', array( 'ghostpool-style' ), AARDVARK_THEME_VERSION ); wp_style_add_data( 'ghostpool-child-style', 'rtl', 'replace' ); } } add_action( 'wp_enqueue_scripts', 'ghostpool_enqueue_child_styles' );
Step 1: Edit the homepage and click the Backend Editor button.
Step 2: Hover over one of the Custom Header elements and click the pencil icon to open the settings window.
Step 3: Scroll down to the Extra Class name field and replace:
fa-circle-o gp-green
With your own icon class and color class.
Available icon class are shown here: https://fontawesome.com/v4/cheatsheet/
Available color classes are:
gp-black, gp-blue, gp-dark-grey, gp-green, gp-light-grey, gp-orange, gp-white
Media such as images uploaded when posting an Activity update using Youzer plugin may not show in the posted activity entry. To fix this add the following code to your functions.php file.
Now refresh your Activity page twice, then remove the code and the issue should be solved.
The demo importer does not import members and groups. If you want to import these you can use a plugin such as BuddyPress Default Data.
You are seeing this error because the theme is too big to be uploaded to your site. This is because your web host has set one of the following too low:
- PHP Memory Limit (should be 256MB or higher)
- Post Maximum Size (should be 64MB or higher)
- WordPress Upload Limit (should be 64MB or higher)
Follow the links for how to increase each of these values.
Alternatively you can upload the theme through an FTP client or file manager in your cPanel. To set up an FTP client refer to the WordPress documentation on this http://codex.wordpress.org/FTP_Clients.
Once you have set up your FTP client upload the aardvark theme folder to /wp-content/themes/ directory on your server.
After updating Youzer to Youzify if you're experiencing issues make sure you are using Aardvark version 4.34 or higher.
Once you're running this version, make sure you update to the latest version of the Aardvark Plugin from Appearance > Install Plugins.
To upgrade to Youzify please follow the steps provided by the Youzify support team here: https://kainelabs.ticksy.com/article/16887/ (note steps 11 and 12 are not relevant and have already been done by the theme update).
If you still have issues, for example you're unable to see the upgrade option, you can open a support ticket at https://kainelabs.ticksy.com/ where the Youzify support team will answer your questions. Sign in with your Envato login details and open a ticket in the "Youzify Upgrade Issues category".
If you're using the theme's login/register pages or popup forms you can use one of the following plugins to add a captcha to help prevent spam logins/signups.
To find your licence key/purchase code you need to log into your ThemeForest account and go to your “Downloads” page.
Locate the relevant theme and click on the Download button and next on the License Certificate & purchase code link in drop-down menu.
After you have downloaded the certificate you can open it in a text editor such as Notepad and copy the Item Purchase Code.
Sometimes your server rewrite rules need flushing. To do this go to Settings -> Permalinks and save the page.
In some cases you may need to change the permalink structure. To do this in the Custom Structure field add the following:
/%category%/%postname%/
Now save the page.
If you're using the homepage imported from the demo data and have Yoast SEO activated then the site title is being pulled from this homepage. Edit the page, scroll down to the Yoast SEO panel and edit the Site Title field.
If you are getting the following error message on your Youzify Actitivty page:
"Notice: Undefined index: in /nas/content/staging/aardvarkdemo/wp-content/plugins/youzify/includes/public/core/wall/yz-class-privacy.php on line 255"
Add the following code to your functions.php file and then refresh the Activity page twice. Now remove the code from your functions.php file and this should fix the issue.
This is a core WordPress option and not part of the theme. Go to Appearance > Customize > Site Identity > Site Icon to change the favicon.
Excerpts do not support shortcodes or HTML, they just display unformatted text. By default excerpts will strip all the HTML tags but you'll see raw shortcodes so you'll need to use custom excerpts to remove these. To do this edit the desired post or page, click the Screen Options button in the top right corner and check Excerpt. Now scroll down to Excerpt panel to add your custom excerpt.
There are two ways to add custom fields depending on if you're using the Gutenberg Editor or Classic Editor.
If the fields are hidden use the Show Hidden Post Meta plugin to show hidden fields.
To find the cause of the issue(s) please do the following:
Ensure you using the latest version of the theme and required plugins. We will not look at any issues if you haven’t updated these. To update the theme and required plugins please refer to the theme documentation.
If updating the theme/plugins didn't fix the issue go to Appearance > Themes and activate the Twenty Twenty-One theme and see if the issue(s) still occur. If your site has visitors you can use the Theme Test Drive plugin so your users don’t see the theme you’ve switched to.
If the issue(s) still occur this means the theme is not causing the issue and this is probably a general WordPress or plugin issue.
To see if it is a plugin issue deactivate all activated plugins (except the plugins that are needed to test the issues). If this fixes the issue(s) this means the theme is not the cause. Reactivate the plugins one by one or in groups so you can identify which plugins are responsible.
If the issue only occurs when this theme is activated it looks like the theme is responsible. Please provide WordPress admin access and I'll take a closer look.
If after updating to BuddyPress 12.1.1 your website won't load or you're getting a fatal error similar to this:
PHP Fatal error: Uncaught Error: Call to undefined function bp_core_get_user_domain()
It is likely a conflict with bbPress or another BuddyPress compatible plugin.
Install the BP Classic plugin to fix this issue.
Edit the page called "Home Original", and click the blue Backend Editor button to show the WPBakery Page Builder editor if you haven't done so already.
Now follow the steps in the image below:
If you receive the following error message where your profile search form should be after importing on the demos please do the following:
If the form is on your homepage:
If the form is in a sidebar widget:
In certain versions of ImageMagick there is a problem when trying to import the demo images and the system becomes extremely slow. This causes the demo importer to never complete. You can use a workaround to fix this as follows:
Access the root of your WordPress installation (located in the same folder as your /wp-content/ and /wp-admin/ directories) using an FTP client or file manager in your web hosting control panel where your .htaccess is located. If you can’t find it, then look at this article on why you can’t find the .htaccess file and how to find it.
Next, add this line to your .htaccess file:
SetEnv MAGICK_THREAD_LIMIT 1
This code limits the number of cores using MAGICK_THREAD_LIMIT which is used when uploading the demo images.
BuddyPress widgets have been removed from version BuddyPress version 12.0.0 and later.
You can restore these widgets by using the BP Classic plugin. Please note, the widgets will not automatically reappear. You will need to manually readd them to your sidebars from Appearance > Widgets.
The theme comes with its own popup login form. You can enable this from Aardvark > Theme Options > Membership > Frontend Popup Form.
If you are using Youzify and have their membership system enabled, the theme's login form is disabled as the two membership systems conflict.
You can disable Youzify membership system from Youzify Panel > General Settings > Activate Membership System.
If you want to use Youzify membership system you can enable their popup login form from Youzify > Membership Settings > Login Settings > Enable Login Popup.
This is a general WordPress option that can be found under Settings -> General -> Anyone can register.
If you're using BuddyPress the register page should have been created automatically. If it has not, create a new page called "Register" and publish it. Now go to Settings -> BuddyPress -> Pages and select this page from the Registration dropdown menu. Now you can link to this page in your menus from Appearance > Menus.