grey4radar
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Avoid loading style.css of the child themeOh I need to sleep.
I assumed I would have to change the “generate-child” to the name of my child theme (generatepress_child) which broke the site.
add_action( 'wp_enqueue_scripts', function() { wp_dequeue_style( 'generate-child' ); }, 50 );I have now added the original code which works perfectly.
Forum: Themes and Templates
In reply to: [GeneratePress] Remove Built with GeneratepressThanks for your reply Ying.
Forum: Themes and Templates
In reply to: [GeneratePress] Remove Built with GeneratepressSorry.
After a bit of searching, I found the answer at https://docs.generatepress.com/article/changing-the-copyright-message/#using-a-function
Duh
Hi Elvin
That seems to have fixed it.
Thanks for your help.Just an FYI.
PHP version is 7.4.28Sorry, back again.
Server side caching is still off and browswer caches cleared.
When using this.
add_filter( 'document_title_parts', 'db_change_doc_title', 15,1 ); function db_change_doc_title( $title ){ if( is_front_page() ) { $title_parts_array['title'] = 'Daves code works'; } return $title_parts_array; }The homepage is fine but all other pages in various browsers (logged in or not) show the following error at the top of the page.
Warning: array_filter() expects parameter 1 to be array, null given in /public_html/site/wp-includes/general-template.php on line 1265 Warning: implode(): Invalid arguments passed in /public_html/site/wp-includes/general-template.php on line 1265Line 1265 has the following.
$title = implode( " $sep ", array_filter( $title ) );I have literally just turned off caching on the server as you were replying.
Bingo – it works.
Thank you very much for your help David.That ony works if I’m logged into WordPress admin in another tab.
When I log out and refresh, it reverts to Site Title only.I have added the snippet to the functions.php of the child theme.
Checked in multiple browsers (also private windows), cleared caches.
Does not work.Should I place that code in the functions.php of the child theme?
@ying – Thanks for your reply.
Does anybody know of a way around this without a plugin?
Hi Patrick,
That method is very labour intensive but works well.
I experimented with DIVS instead of TABLE layout and that works also.My solution is:
<div style="background-color:navy; color:#ffffff; padding:0.25em 0.5em;">LABEL</div> <div style="margin-bottom:2em; background-color:#d3d3d3; padding:0.25em 0.5em;">{radio-1}</div> <div style="background-color:navy; color:#ffffff; padding:0.25em 0.5em;">LABEL</div> <div style="margin-bottom:2em; background-color:#d3d3d3; padding:0.25em 0.5em;">{radio-2}</div> <div style="background-color:navy; color:#ffffff; padding:0.25em 0.5em;">LABEL</div> <div style="margin-bottom:2em; background-color:#d3d3d3; padding:0.25em 0.5em;">{radio-3}</div>Thank you for your help.
- This reply was modified 4 years, 4 months ago by grey4radar.
Forum: Everything else WordPress
In reply to: Move WordPress installI tried a different approach which seems to have worked.
- Log out of all WP dashboards.
- In cpanel file manager, rename the original
WEBSITEtoRANDOM-NAMEor delete it. - In phpMyAdmin select the database for
NEWand select “wp_options” table and change “siteurl” and “home” tomydomain.com/WEBSITE. - In cpanel file manager, rename
NEWtoWEBSITE. - In cpanel file manager, edit “.htaccess” in the newly renamed
WEBSITEfolder and changeRewriteRule . /NEW/index.php [L]toRewriteRule . /WEBSITE/index.php [L] - Go to mydomain.com/WEBSITE/wp-admin and login with credentials for
NEW.
Then do the move WP from directory to root – https://www.webhostinghub.com/help/learn/wordpress/running-wordpress-from-a-subdomain-or-subdirectory
Voila – I now have the NEW WordPress site in a folder named WEBSITE viewable from mydomain.com
The only downside was that there were more than 30 references to
NEWstill in the database.I’m not an SQL guru so it took me around an hour to manually edit all those out in phpMyAdmin.
There are only 5 pages/posts on the development site for now but the final site will have nearly 50 pages/posts. That’s a long time to spend in phpMyAdmin manually editing.
One other issue was with a photo slider plugin that I had to reset.
- This reply was modified 5 years, 2 months ago by grey4radar.
Forum: Everything else WordPress
In reply to: Move WordPress installI didn’t do anything!
I only used search mode, not search and replace.Forum: Everything else WordPress
In reply to: Move WordPress installIf I do search regex in search only mode for
href="mydomain.com/NEW"andsrc="mydomain.com/NEWI get “No more matching results found.“