Ming Sheu
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to set cannonical https://www in .htaccessYou can try something like this. Modify to add or remove “www.” as desired.
# If HTTPS is off then 301 to HTTPS RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # If HTTP_HOST does not start with www. then 301 to www. RewriteCond %{HTTP_HOST} !^www\. RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Forum: Fixing WordPress
In reply to: 2 Issues: SSL and Drop Down MenuAre you able to determine a pattern for the issue? What browsers, what OS, etc.
I’ve tested on Mac Sierra with Chrome, Firefox, and Safari and the menu expands on hover for me on your site and the theme author’s demo site, https://wp-demo.indonez.com/?theme=Satria
Try testing on the demo site and see if it works there for you. Maybe the theme author can provide support for their theme.
- This reply was modified 7 years, 12 months ago by Ming Sheu.
Forum: Fixing WordPress
In reply to: Update WP install to WP network & it broke the DB connectionGood to hear that you tracked down the problem.
Forum: Fixing WordPress
In reply to: 2 Issues: SSL and Drop Down MenuDeleted comments.
Looks like you found the offending plugin.
Forum: Fixing WordPress
In reply to: Update WP install to WP network & it broke the DB connectionLike I said, it’s been a while since I’ve installed a multisite and typically I install directly as multisite. I rarely convert a single site to multisite. Maybe something went wrong during the install process.
First, you should access your database and check the tables and see what they are actually named. Let’s make sure that is the actual problem.
Forum: Fixing WordPress
In reply to: Update WP install to WP network & it broke the DB connectionAre you sure those tables exist? Have you checked the database?
It’s been a while since I’ve setup a multisite and I didn’t read through the tutorial that you linked.
Typically a single site install will have wp_[table_name] and a multisite install will have wp_[blog_id]_[table_name]. Was there a step where your original single site tables were renamed to the multisite format? If not, then that’s why you’re getting the table doesn’t exist errors.
Forum: Fixing WordPress
In reply to: 2 Issues: SSL and Drop Down MenuLooks like the site is using Simple Cache with batcache
<!-- generated 289 seconds ago generated in 1.160 seconds served from batcache in 0.008 seconds expires in 86111 seconds -->
Have you checked all possible caches? Check all plugins and any other caching
Forum: Fixing WordPress
In reply to: 2 Issues: SSL and Drop Down MenuFor #1
Page: https://www.logicweb.com/managed-ssd-vps/
CSS: https://www.logicweb.com/wp-content/cache/autoptimize/css/autoptimize_355ba14ba84109376fd3933f8d8af455.cssPage: https://www.logicweb.com/seo-vps-hosting/
CSS: https://www.logicweb.com/wp-content/cache/autoptimize/css/autoptimize_e8734c76dbe48f1dd3f1b11cd4913b24.cssBoth the above CSS files reference the http image.
Page: https://www.logicweb.com/
CSS: https://www.logicweb.com/wp-content/cache/autoptimize/css/autoptimize_d5d4c53729ccef45e51d94e0b088f578.cssThe home page CSS does not have the http image referenced in the CSS.
My guess is that the CSS source code is correct and you need to purge/rebuild your cache for those 2 pages. They are probably loading an old cached CSS file.
For #2
It works for my on Chrome, FF, and Safari. I would suggest you check the browser console for errors, clear your browser cache, and check on someone else’s browser to try and track down a specific error. I’m not seeing any problems on my side so it’s hard for me to say.
Since it appears that there are potential caching issues from #1, you may be experiencing caching issues for #2. If performance is not a concern, try purging all caches from the server to CDN to your browser and anything in between.
Forum: Fixing WordPress
In reply to: 2 Issues: SSL and Drop Down MenuFor #1 – mixed content issue
Check out your BWL Knowledge Base Manager Custom Styles for a reference to https://www.logicweb.com/kb/wp-content/themes/satria/images/vps-slider/lines1.png
There may be others, that was just the one that came up when I check the pages.
For #2 – dropdown
The “Web Hosting” menu drops down for me on Chrome 57.0.2987.98 and FF 52.0
Forum: Hacks
In reply to: How to get custom field value in the codeI believe you need the following in functions.php
function selaluceria_excerpt_read_more() { global $post; return '<span class=\'clear\'><a class=\'readmore\' href=\'' . get_post_meta($post->ID, 'link', true) . '\'>' . __( 'Read More', 'selaluceria') . '</a></span>'; }
I did not install or test the theme and code edits.
Forum: Hacks
In reply to: How to get custom field value in the codeThe code from the first post looks to be inside a function based on the “return” statement.
If so, you need to make sure you are passing the correct $post object to the function.
What theme are you using? If it’s a public theme, I can reference the exact file and location to view the code/function.
Forum: Hacks
In reply to: How to get custom field value in the codeIt’s hard to say without seeing more of your code and data.
Are you sure you are getting the expected “post id” in your code?
Are you sure the post id referenced has the custom field “link”?
Do all posts have the a valid “link” value?
Forum: Hacks
In reply to: How to get custom field value in the codeSorry, I was unclear. The code I had was just an example.
For your specific instance, try this
get_post_meta($post->ID, 'link', true)
Forum: Hacks
In reply to: How to get custom field value in the codeTry this instead.
Function: get_post_meta
get_post_meta($post_id, $key, $single);
You are using get_post_custom incorrectly. From the codex, get_post_custom
Returns a multidimensional array with all custom fields of a particular post or page.
get_post_custom($post_id);
Forum: Hacks
In reply to: Best way to create a css file dynamicallyIt sounds like you have some competing goals as is usual in these situations. You should probably look at your objectives and prioritize them for your project.
On one extreme, bootstrap WordPress and dynamically generate CSS for simple management and ultimate flexibility in install configurations/locations.
On the other extreme, write custom code to directly access the database and pre-generate CSS that is minified, compressed and cacheable to squeeze every bit of performance on the server and for the client.
And then, there’s the gray area between the two.