Edward Caissie
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Child Theme not loading@frejachristiana – You appear to be following the steps outlined here https://developer.wordpress.org/themes/advanced-topics/child-themes/ … I would suggest going back to that page to make certain you have followed each step.
The code above looks fine so I would suggest looking at your child-theme’s style.css file to ensure it is set correctly (particularly the template reference).
~ Cais.
Forum: Fixing WordPress
In reply to: Multiple Title Colors@altere987 – The default way to show a site’s name is to use the text found in settings although the reality is that text does not lend itself to adding in usable CSS elements to accomplish what you are describing.
The simplest method to get around this is most likely going to be to create a child-theme and instead of using the codified version of displaying the “site title” hard code the actual text you want to use and apply the appropriate CSS elements to allow you to change the text as needed.
Change this (in header.php):
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>to this (in your new child-theme’s header.php file):
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">{-=<span id="main-site-title-text">Masaki</span>=-}</a></h1>Now you can change the “Masaki” text to a different color by using the
#main-site-title-textselector.Hope that helps…
~ Cais.
PS: Feel free to use whatever unique ID you like for the selector.
- This reply was modified 7 years, 1 month ago by Edward Caissie.
Forum: Fixing WordPress
In reply to: Upload Media from Mobile Device@pauljoel – Have you looked at the WordPress mobile apps?
Try this link https://wordpress.org/mobile/
~ Cais.
Forum: Fixing WordPress
In reply to: Expand a widget@4ever16 – You can probably accomplish that with some JavaScript that toggles/slides the widget’s display open and closed when clicking on the symbol.
Here’s an example from a quick search: https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp
~Cais.
Forum: Fixing WordPress
In reply to: use variable filled in 1. shortcod in the hook of another shortcod@motzmaus – Without the context of your actual code I would suggest writing a function to return the value of
$test_variableand call that function in each of the shortcode functions as required.~Cais.
Forum: Fixing WordPress
In reply to: Guttenberg does not allow to set up page hierarchy@hugomilan – I may not have been clear on the item to click. Try clicking the “Page Attribute” section title a few times.
~Cais.
Forum: Fixing WordPress
In reply to: Guttenberg does not allow to set up page hierarchy@hugomilan – You may have found something there. Although for the most part I was not able to reproduce this, I am seeing on some sites that the Page Attribute section does not always show the option to select a Parent page unless you click on its title bar a few times. Once it appears, it apparently continues to work as expected?!
~Cais.
Forum: Everything else WordPress
In reply to: Changing Plugin URL Slug@dcooney – You might want to consider a secondary plugin that deactivates
my-awesome-plugin; changes the folder name (given the appropriate permissions are available for the plugin to use); then activatesmy-plugin.The deactivation and activation are usually easy to accomplish programmatically, and the folder name change should be possible under most permission conditions.
IIRC, the deactivation and activation sequences are also necessary to core for some operations and references.
~Cais.
Forum: Fixing WordPress
In reply to: Joomla migration to WordPress@visualeight – I’m going to suggest this might be a bit complicated although this is how I would likely approach it myself:
1. Migrate the Joomla content to WordPress with https://wordpress.org/plugins/fg-joomla-to-wordpress/
2. Create your CPT
3. Migrate the imported Posts to the new CPT with https://en-ca.wordpress.org/plugins/post-type-switcher/I would also suggest the re-design be done on the WordPress installation as the theme/template structures do not readily transfer and would likely be less work to complete after the content is migrated (and more easily envisioned on the site).
~Cais.
PS: The above plugins are just suggestions, you might find others you prefer with your own searches.
- This reply was modified 7 years, 4 months ago by Edward Caissie.
Forum: Fixing WordPress
In reply to: image_default_link_type doesn’t work@trlanfeng – Although I believe I now understand what you are looking at (using the Gutenberg editor: insert an image, click on Media Library … and you see the current images rather than your preference of the upload option) I do not have a specific solution but an observation.
When you are writing your post/page go to the Featured Image option, work through the steps to upload a new image (you do not actually need to); then, if you go back to the editor and try to add an image you will find the image picker is still loading the upload file tab versus the existing library tab.
Obviously not what you are asking but possibly a short-term work-around and new direction to look for a programmatic solution.
~Cais.
Forum: Fixing WordPress
In reply to: I cannot publish, article stay draft@sarveshyam – Does the role of the user you are trying to publish with have those privileges? The role needs to be an Author, Editor, or Administrator … if the role you are using is marked as a Contributor you will not be able to publish under default privileges.
~Cais.
Forum: Fixing WordPress
In reply to: image_default_link_type doesn’t work@trlanfeng – I’m not certain what you are wanting to accomplish although if you are modifying any of the WordPress core files it would be
_doing_it_wrong()Have a look in ../wp-includes/media.php, if you cannot find an appropriate hook to attach to in that file you should be able to trace out to one that may work.
~Cais.
Forum: Fixing WordPress
In reply to: Tumblr Posts Import Problem@0penminded – There may be a conflict going on, have you tried temporarily switching to a default WordPress Twenty series theme and deactivating all your current active plugins to see if this issue persists?
~Cais.
Forum: Fixing WordPress
In reply to: Problem after update?@qnkov – I would suggest taking all of the custom CSS and the custom script and moving it into a child-theme. The editor will be treating that as standard text in a post or page and that is why you are seeing the
<br />effects and “broken” displays. Simply put, the CSS and JavaScript are not being parsed.You might also look at a plugin (or two) as an alternative to a child-theme, there are many that can provide for custom CSS and JavaScript insertions.
~Cais.
Forum: Fixing WordPress
In reply to: updating to PHP 5.5 – error messages@wishbone – As it was a very old WordPress installation you are probably looking at a conflict being created by the active theme (if it is as old) and/or an active plugin that has not been updated to current standards.
This article might be helpful: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
This article in the codex goes even further: https://codex.wordpress.org/Managing_Plugins#Troubleshooting
~Cais.