lbutler
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Editing basic CSS in a themeOK, let’s get more specific.
I switched to the 2015 theme, dark. The color options in the theme settings only apply to the sidebar, and I cannot change the colors of the posts (grey on dark grey).
Let’s say I want to change the color to white (crazy talk, I know) and the the backgrond to black.
I installed “WP Add Custom CSS” and tried:
p { color: white; }
Not much happened. I am able to change the body text with
p { color: white; background: black; !important }
I am still lft with weird grey bars all over the page.
Forum: Themes and Templates
In reply to: default theme want to replace "Title" with a canvasI think I fixed it, but I had to get the “right” value for the canvas width.
ctx.font = "60pt Times New Roman"; <canvas id="logo" width="800" height="150"></canvas>
Forum: Installing WordPress
In reply to: Pictures Not Showing Up In Postsprobably not going to be able to help unless we see the WP blog in question, and maybe not even then.
Posting pictures ‘just works’ so it’s pretty hard to diagnose based on this limited information.
Forum: Installing WordPress
In reply to: WordPress .htaccess file breaks webdavI solved this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} !^webdav
RewriteRule . /index.php [L]
RewriteRule ^u/([0-9]+)$ wp-content/plugins/short-url-plugin/u.php?$1|$2
</IfModule>My webdav is setup as https://webdav.example.com/ so the various REQUEST_URI variations simply didn’t work.
The trouble now is how to make sure that that line stays in. For now, I am making the htaccess file owned by root so that WordPress cannot alter it. Not ideal, I know.
Forum: Installing WordPress
In reply to: WordPress .htaccess file breaks webdavOK, went ahead and installed it anyway. It does nothing to the .htaccess file at all, even after going in and saving a post (Updating). I looked at the code and it looked like the line it was adding was, essentially, this:
RewriteCond %{REQUEST_URI} !^/(‘wp-content’)
(there were more things in the ” in the default script)
but adding that line into the .htaccess manually didn’t seem to have any affect.
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(‘wp-content’)
RewriteRule . /index.php [L]
RewriteRule ^u/([0-9]+)$ wp-content/plugins/short-url-plugin/u.php?$1|$2
</IfModule>
##EOFForum: Installing WordPress
In reply to: WordPress .htaccess file breaks webdavI had found that, but didn’t know if it would work. However, trying to upload it gives me:
Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
That is downloading directly from that site. I can try installing the php file (inside the .tar.gz file) directly, but since it says WordPress 2.1+ I am a little hesitant.
Forum: Fixing WordPress
In reply to: the_content() is surrounded by <p> tagsThanks, that does work. Have filed it away for future reference. I’d gone ahead and used CSS to redefine p to h6 and h6 to p and all is right with the world. put the get_the_content in as a comment so I have it next time.
Forum: Fixing WordPress
In reply to: How to setup a page to show most recent posthey now, /wp-blog-header.php loads just fine (it loads a blank page, but hey) from the web site, so I was thinking web paths, not … you know, PATH paths ??
Forum: Fixing WordPress
In reply to: How to setup a page to show most recent postThanks for the code. I put it in a file named single.php and put it in the root of the blog (with the wp-blog-header.php file). I get the following error:
Fatal error: Class ‘WP_Query’ not found in /usr/local/www/single.php on line 4
[EDIT: never mind, I removed the leading slash from /wp-blog-header.php and it loads fine. Thank you! ]
Forum: Fixing WordPress
In reply to: How to setup a page to show most recent postI found a answer that said to use
<?php query_posts('name=first-post')?>
But the trouble is I don’t know where to use that, so let me give more detail.
SERVER1 has the blog. SERVER2 has a default page that has the login for the webmail in a top frame. In the bottom frame, I currently have a message about linking to the server status blog. Instead, I want to load the most recent post from that server status blog (hosted on SERVER1).
So, I will need, I guess, the code to login to the mysql database and pull the the most recent post and then display it. SERVER2 doesn’t have WordPress installed, so I was hoping to be able to display something like an RSS feed of the most recent post instead of installing WordPress on SERVER2.
Make sense?