Matt Cohen
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Broken theme. No stylesheet?Hi distinctnews,
Is thestyle.cssfile present in your FTP application in the theme directory (eg: wp-content/themes/your-theme-folder)?Possibly, re-uploading this file, if it is there, should resolve this issue.
I hope this helps.
Cheers,
Matty.Forum: Themes and Templates
In reply to: Add an image to my church theme headerHi Mark,
From what I can see in the code snippet you’ve provided, the theme is looking for a block of code generated by an advertising website.If you don’t have this, I’d say try something like this:
<img src="PLACE_THE_FULL_PATH_TO_YOUR_IMAGE_HERE" />Paste the above into the block in the theme options panel. This will generate an image tag calling your image that you would like in the top banner area.
Please advise your results with this.
I hope this helps. 🙂
Cheers,
Matty.Forum: Themes and Templates
In reply to: Add an image to my church theme headerHi marco61,
As far as I understand, the Church Theme has an options panel on which you provide your image location for the above-mentioned image. From there, that value gets stored in the database under “468_ad” and then called into your theme via the code you have provided.As I have yet to work with the Church theme, I am unsure as to exactly what information is to be provided in the theme options panel. Just thought I’d clarify what the process looks like to me. 🙂
I hope this helps.
Cheers,
Matty.Forum: Themes and Templates
In reply to: Where in the Style Sheet is the section for the menu bar?Thanks, PurplesRealm. Glad I could help. 🙂
Forum: Themes and Templates
In reply to: Where in the Style Sheet is the section for the menu bar?Hi PurplesRealm,
It looks like the magenta-coloured navigation background is an image with a fixed with. The image is located at:http://purplerealm.net/blog/wp-content/themes/Business-woman/images/nav.png
By increasing the width of this image to 1200px and moving the right-hand corner to the far right of the image, you will achieve the desired effect. 🙂
I hope this helps.
Cheers,
Matty.Forum: Themes and Templates
In reply to: How to center images?Hi matiasc,
I use the following line in my CSS file for centering images:.aligncenter, img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }The above code will use the class that is applied to images when selecting the centre alignment in the WordPress image edit window in the backend. This does similar work to the code mentioned by miocene22, while making use of a native WordPress class.
I hope this helps. 🙂
Cheers,
Matty.Forum: Plugins
In reply to: Feed Statistics (./../../wp-config.php) errorHi gregjsmith, rmsylte and jtimar,
I’ve installed this plugin and have an idea as to where the error is coming in.It seems like the call to the WordPress config file isn’t working, as it is looking for the file in the incorrect directory.
If you could please try the following:
Replace
require("./../../wp-config.php");on line 32 of feed-statistics.php withrequire("../../../wp-config.php");(Note the extra dot (.) after require(“.)
Please advise if this resolves the issue.
I hope this helps. 🙂
Cheers,
Matty.Forum: Plugins
In reply to: i want xml sitemap plugin for my stieHi 7bigshop,
If you visit the Extend->Plugins section and search for “Google XML Sitemap” you should see the Google XML Sitemaps plugin in the results list. This should, as far as I can see, do what you’re looking for. 🙂Cheers,
Matty.Forum: Requests and Feedback
In reply to: [Plugin: More Fields] Remove imagesHi scitrenbaum,
The most direct solution would be to use a “File List” field, generated by More Fields. This field will generate a list of files that have been uploaded and attached to the page/post from within WordPress.I hope this helps. 🙂
Cheers,
Matt.Forum: Themes and Templates
In reply to: Blog posts not showing up on blog pageHey Dan,
Thanks man. Glad I could help. 🙂Cheers,
Matt.Forum: Themes and Templates
In reply to: Custom Fields in a dynamic css file using .phpHey mattsimo,
I’m doing something similar to your post. In my research, I came across your post. I have a solution for you.In your PHP file that you’re using as a CSS file, add the following after your header() declaration:
require_once('../../../../wp-load.php'); require_once('../../../../wp-includes/post.php');The backslashes aren’t great, but can be neatened up at a later stage. The only requirement is that you make sure the number of ‘../’ is relative to the position of your PHP file in the filesystem.
The above lines performs the general WordPress load, allowing for access to various variables, etc, some of which are required by the second line, which is the location of the
get_post_meta()function.The rest, as you’ve written it using
get_post_meta(), should be cool.I hope this helps. 🙂
Cheers,
Matt.Hi Brittany,
I’m glad you managed to resolve things. 🙂For future reference, it shouldn’t matter where in your CSS file you paste the above code snippet. It should, however, be placed below any declarations where .navigation is already declared. This makes sure that our code will definitely be applied. 🙂
Cheers,
Matty.Forum: Themes and Templates
In reply to: Get rid of image border?Hi neodan,
In style.css, add border: 0px; to the following declaration, belowmargin: 0;:.wp-caption img { margin: 0; }It looks like your typography.css file takes care of images within
atags. The above code is for images within caption tags.I hope this helps. 🙂
Cheers,
Matty.Forum: Fixing WordPress
In reply to: How to? Pre-filled custom fieldsHi Hiperciencia,
What you are referring to in your last post would be a PHP conditional. This would look something like this:<?php
$variable_name = get_post_meta($post->ID, ‘custom_field_key’, true);
if ($variable_name == ”) {
echo ‘THIS IS THE DEFAULT IF THE CUSTOM FIELD IS EMPTY’;
} else {
echo $variable_name;
}
?>The above code uses the get_post_meta() function to get the value of the custom field with the name specified in place of ‘custom_field_key’. This value is then checked to see if it’s empty. If it is, it displays a default string. Otherwise, it displays the value of the custom field.
This code is rough and can be refined somewhat. For more information, visit the Codex section of custom fields.
I hope this helps. 🙂
Cheers,
Matty.Forum: Themes and Templates
In reply to: Get rid of image border?Hi neodan,
In your style.css file, type the following:img { border: 0px; }If there are any styles of img tags anywhere in your css file, add the
border: 0px;attribute to them as well, to be sure. 🙂Cheers,
Matty.