@mcuk
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: Remove sidebars and stretch content in Twenty Seventeen themeThis is probably what you are looking to do for a full width template (start reading near the bottom from ‘Working With A Child Theme’ onwards):
https://www.designbombs.com/master-twenty-seventeen-wordpress-theme/
Hope it helps.
Forum: Localhost Installs
In reply to: 404 error with blog posts on localhost XAMPP siteHi @aksdvp thanks for your reply.
I do have the htaccess file, currently in the location:
C:\xampp\htdocs\mywebsiteThe code in that file reads:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /mywebsite/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /mywebsite/index.php [L] </IfModule> # END WordPress
I have tried replacing the code above with yours (i.e. removing the mywebsite parts, then doing restart) but that doesn’t work. It creates more issues making the rest of the website inaccessible and showing Welcome to XAMPP pages…
Thanks
Forum: Fixing WordPress
In reply to: Notification Counter Positioning in Main Navigation MenuManaged to solve this:
function bp_main_nav_notification_bubble( $items, $args ) { if( $args->theme_location == 'header-menu' ) { // In manage locations via WP Dash>Appearance>Menus $items_array = array(); while ( false !== ( $item_pos = strpos ( $items, '<li', 3 ) ) ) { $items_array[] = substr( $items, 0, $item_pos ); $items = substr( $items, $item_pos ); } $items_array[] = $items; array_splice( $items_array, 3, 0, '<li class="bubble">' . bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) . '</li>' ); // 0,0 1st position, 1,0 2nd, etc $items = implode( '', $items_array ); } return $items; } add_filter( 'wp_nav_menu_items', 'bp_main_nav_notification_bubble', 10, 2 );
Viewing 3 replies - 1 through 3 (of 3 total)