morajabi
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Error establishing a database connectionIn addition to what @t-p said, I want to suggest you use MAMP for setting up MySQL and PHPMyAdmin and PHP. It’s great and easy to setup for beginners.
Forum: Developing with WordPress
In reply to: Multiple DatabasesWhat kind of advice are you looking for? Your idea is OK.
Forum: Fixing WordPress
In reply to: Want to rename my wordpress folderAs @jaycbrf said there are a few of ways of doing so. Here is one of the easiest solutions you may find handy:
Via WordPress Dashboard
After moving your site files (if necessary), log into your WordPress Dashboard as an administrator.
Next, click on Settings from the menu, and then General.Click on General to get started.
The two fields we’ll change are WordPress Address (URL) and Site Address (URL).Enter the URL you’d like to use. For this example, we’ll change the two fields to https://dv-example.com.
Scroll down the page and click on the Save Changes button.
Be sure that you rename the folder to the new URL in FTP or the File Manager.
That’s it!TIP:
Remember that your WordPress Dashboard has now changed and will be using the URL you entered before.Forum: Fixing WordPress
In reply to: Should I move my wordpress folder to the root ?You can manage that in Addon Domains section in CPanel. You’ll add your domain there and then you can choose the root folder for that domain, so choose public_html/wp for the directory.
Don’t forgot to set your new domain’s DNS to your host.
Forum: Localhost Installs
In reply to: Intermittent failures “localhost refused to connect”Great.
Forum: Localhost Installs
In reply to: Intermittent failures “localhost refused to connect”Port CAN be a problem because I have the experience when something (a cli, server, etc) works for a while but after minutes, it fails because something else grabs the port.
Forum: Localhost Installs
In reply to: change of index.php temporarily to create testing websiteLook why you don’t you rename wordpress’s index.php to home.php and thus users will see index.php (the one that was there before wp) normally and you can continue develop and test WordPress on home.php or wp.php with the way I told you before.
Wordpress -> home.php – Only you can access WordPress on https://example.com/home.php
Main Site -> index.php – Users have access to it just like before on https://example.com
Forum: Localhost Installs
In reply to: change of index.php temporarily to create testing websiteYou can do this. Just follow this tutorial on journalxtra.com
https://journalxtra.com/web-development/change-index-php-wordpress/In wordpress the script that handles requests and sends them to
index.php
is the.htaccess
file.For example if you wanted to rename
index.php
toblog.php
, you need to change the.htaccess
file in the root folder from## This line might not yet be present. ## Should add it for security DirectoryIndex index.php # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
to
DirectoryIndex blog.php index.php # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^blog\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . blog.php [L] # END WordPress
Forum: Localhost Installs
In reply to: change of index.php temporarily to create testing websiteAnd can you tell me how would you want to access it then?
Forum: Fixing WordPress
In reply to: Different Images for Different Divices@sumithsuku11 It IS possible for multiple posts. You just need to have multiple unique class/id in each post.
Forum: Fixing WordPress
In reply to: Question about statsMaybe lots of new robots have found your sites url and started to spam it?!
Forum: Fixing WordPress
In reply to: Different Images for Different Divices@sumithsuku11 Yes it is possible this way with one downside, and that is if you have bunch of these media queries for different posts, the user has to fetch all of them no matter they are relevant to current post. So if you have 100 posts each with 3 media queries and each media query takes 3 lines, then you are forcing user to download 99 * 3 * 3 = 171 line unnecessary code (nearly 30kb). Therefore it’s not recommended to use this approach for more than a few posts or images.
Forum: Fixing WordPress
In reply to: Different Images for Different Divices@sumithsuku11 It’s not possible to use media queries inside TinyMCE easily. It gets commented by the editor when you switch back to Visual Editor mode.
Plus if it was possible, if you have multiple
<img />
tags, they all get fetched no matter whatdisplay
attribute you have in CSS.- This reply was modified 7 years, 7 months ago by morajabi.
Forum: Fixing WordPress
In reply to: Different Images for Different DivicesI couldn’t find a plugin for this purpose but I think you can have this functionality with media-queries and
<img/>
tags (or cssbackground
) if you know a bit of HTML/CSS. It’s a bit tricky I suppose since TinyMCE (default wordpress editor) doesn’t allow you to insert<style>
tag inside editor.Where do you need it? In an specific post or not?
- This reply was modified 7 years, 7 months ago by morajabi.
Forum: Fixing WordPress
In reply to: Secondary Menu not Visible in Android MobileThere are 2 things controlling that black menu. First is CSS with media-queries which hides the menu for small devices (it’s the theme’s expected behaviour). Second is Javascript which controls the sticky functionality. It checks every 10ms for updating styles.
I don’t think I can help you with this without accessing the source code. But I try checking.
Try searching the theme options for something like disable sticky menu or show menu in mobiles or something about menu. Try disabling and enabling them.