converting2wp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How can I reduce white space between header image and page content?And comparing the About page to your other pages, it appears that the title is blank. You can see this in Firebug as
<h1 class="entry-title"></h1>Try putting some words in the title box (maybe moving the “Hello” up to that area.
It also looks as if there is an empty paragraph at the top of your post which may be adding another line of blank space.
Forum: Fixing WordPress
In reply to: Remove line break in titileIt looks as if you’ve fixed this. Perhaps by changing the theme?
Since this thread is marked resolved, if you do need more help, please start a new thread. Add a link to this discussion if it helps explain what you’ve tried to do to resolve the problem on your own.
Threads that are still “open” and have a single post are more apt to get the attention of the volunteers who answer the questions.
I’m just clicking the “subscribe in Google Calendar” button at the bottom of the calendar on the page I listed above. I’m not sure I know what you mean by the “ics feed” — I’m trying to export from ai1ec to Google.
Forum: Fixing WordPress
In reply to: Adding widgets to header in twenty eleven themeThat’s happened to me — and to many others, I’m sure.
Glad to help!
http://wptest.sgtst.com/wp/?page_id=4 is the test environment.
Thanks.
Forum: Fixing WordPress
In reply to: Adding widgets to header in twenty eleven themeWhen say you went to “look at your functions.php file” do you mean from the Admin Panel >Appearance > Editor ? Then the error is complaining about something in the wp-admin section, not the functions.php itself.
Do you get a different error when you go to the WordPress site itself (the front end)? Or does that seem to be working fine.
If you have shell access (or can see this through your FTP client) you might check to make sure the files you uploaded have the same owner and permissions as the files in the original TwentyEleven theme. If they do, you may have to contact Network Solutions for help on the Server Error (unless doing a fresh install sounds attractive).
[I’ll be offline for most of the rest of the week.]
Forum: Fixing WordPress
In reply to: Adding widgets to header in twenty eleven themeWell, the file needs to be on the server in the wp-content/themes/<what.ever.you.called.your.child.theme> folder. The changes to the header.php and style.css files must be done there, too. If you are simply making the changes on your local machine, that explains why you’re not seeing any updates.
One way to get the file there is to create the file on your local machine and then use an FTP client (I like filezilla) and the login information from your hosting service to put it in the right place. Another way is to login to the server (using a “shell”) and edit the file onsite — but FTP is undoubtedly easier.
Once you’ve created a functions.php you can use the WordPress administration Appearance > Editor to change it. But I don’t see a way to *create* the file there.
Note that a syntax error in functions.php can take down your entire site (and you may not be able to get into the dashboard to correct the problem), so it’s good to know how to make the edits (and keep backups) on your local machine so you can delete a problematic functions.php and start over. [That may be why the “create a file” functionality has not been implemented.]
Check with your hosting service — some have “web based ftp” that you can find in the control panel, or do search for “ftp tutorial” for information on how to use Filezilla, FireFTP (firefox plugin) or other popular, free FTP tools.
[Mentioning your hosting service might turn up someone who can direct you on how to use their tools. Personally I use Dreamhost most often.]
Best wishes.
Forum: Fixing WordPress
In reply to: Adding widgets to header in twenty eleven themeThe only thing I know that would affect picking up new PHP files would be caching plugins — and I don’t know if those affect the admin area. But if you have any, turn them off.
If you copied the code above, a widget area “Home right sidebar” should appear above the list of other widget areas (“Main sidebar”, “Showcase Sidebar”, “Footer Area One”, “Footer Area Two”, “Footer Area Three”).
Have you had success putting widgets into one of the other widget areas?
If you change that string ‘Home right sidebar’ to ‘JTL2744 Widget Area’, then the widget will be labeled with the new string — and may be easier to pick out (assuming that the code was copied and modified correctly).
Forum: Fixing WordPress
In reply to: Adding widgets to header in twenty eleven themeThank *you* for asking a specific question and giving some indication of how much detail you wanted. Fortunately the WordPress community is large enough that some of us have time to tackle questions like this. WordPress can seem to have a large number of moving parts, but I hope you do figure out how to leverage its flexibility.
Forum: Fixing WordPress
In reply to: Adding widgets to header in twenty eleven themeHere’s how I did a simple example using the code in the Codex page http://codex.ww.wp.xz.cn/Widgetizing_Themes
1. Copy the code
<?php /** * Register our sidebars and widgetized areas. * */ function arphabet_widgets_init() { register_sidebar( array( 'name' => 'Home right sidebar', 'id' => 'home_right_1', 'before_widget' => '<div>', 'after_widget' => '</div>', 'before_title' => '<h2 class="rounded">', 'after_title' => '</h2>', ) ); } add_action( 'widgets_init', 'arphabet_widgets_init' ); ?>into the file functions.php in the folder of your child theme. If you don’t have functions.php already in the folder with your child theme files, simply create an empty file and put the code above into it.
2. Change the line
'before_widget' => '<div>',
to
'before_widget' => '<div id="arphabet">',
[It doesn’t matter what you call the ID; you just need something to be able to refer to this area later.]3. Copy the header.php file from the twentyeleven folder to your child folder. Edit it to put the lines from the Codex article.
<?php if ( dynamic_sidebar('home_right_1') ) : else : ?> <?php endif; ?>just before the line
<?php get_search_form(); ?>4. Now edit style.css in your child theme to do something reasonable with the div you’re creating with the code above. Since you talked about putting it near the top of the page, I just used the CSS for the search form and modified it slightly:
#branding #arphabet { position: absolute; top: 3.8em; right: 30.6%; text-align: right; }[The “right: 30.6%;” makes this box sit to the left of the search form.]
5. Finally go to your Admin panel > Appearance > Widgets. You should see a widget area over on the right labeled “Home right sidebar”. I dragged a text box widget over to that and added a header and a bit of text, and clicked Save.
Then the text I entered into the widget appeared to the left of the search form in the header.
Summary: So along with functions.php and header.php in your child theme folder, it’s likely you’ll need corresponding changes in style.css, and the code you put into functions.php will need to lay the groundwork for those style.css changes. I’m not the one to help you with fine tuning the CSS. If you do get it “almost” working you may want to open another incident and share a link to your site with a comment about what’s not working to get CSS suggestions. But I hope this at least gets you started with a new widget area at the top of your page.
Forum: Fixing WordPress
In reply to: Web site not foundLooks like your domain is registered at GoDaddy which had a serious problem affecting *many* sites earlier today. This is apparently resolved and you can mark it as such.
Forum: Plugins
In reply to: [Batch categories import] Batch categories importYou may also want to look at
http://ww.wp.xz.cn/support/topic/plugin-batch-categories-import-hierarchy-not-immediately-visible-on-the-categories-page?replies=2if you’re trying to import nexted categories.
Forum: Plugins
In reply to: [Batch categories import] Batch categories importInstall and activate the plugin.
Go to Posts > Batch Category Import
There’s the help text you quote above and then a text box.
When I put the following into the text box
Category A
Category B
Parent Category C -> Child Category D -> Grandchild Category E
Category with a very long name$cat-longI get the message:
Request returned with the following result:
#0 Created: Category A
#1 Created: Category B
#2 Created: Parent Category C Child Category D Grandchild Category E
#3 Created: Category with a very long name
#4 Could not create category.[Message #4 may have been due to a blank line entered into the text box.]
All 6 categories (including parent, child, and grandchild) *were* created, but the parent/child relationship on line #2 was not created.
I tried again taking out the spaces surrounding the “->” tokens, but that didn’t help — again the categories were created, but the relationships were not.
The plugin FAQ has a more “user friendly” version of the help text that appears at the start of the plugin page — that may be the “simple terms” you’re asking for. But it does appear there’s a bug related to nested categories and the error message generated by a blank line seems odd.
If that’s not enough information, it’d help for you to describe what you’re trying to accomplish by using the plugin. There may be other plugins that accomplish your goal.
Forum: Fixing WordPress
In reply to: Display sub-categories in 2 columnsSee my answer to your other question where I recommended the use of get_categories.
If you want to fine tune the output of a list of categories, you’ll almost certainly want to use one of the WordPress functions, not the template tag wp_list_categories. [Even if you use “echo=0” the return value of wp_list_categories still contains all the HTML for the list, and it’ll be difficult to put the
<tr></tr>tags where you want them to be.]The idea of most template tags is that they handle generating the HTML that’s good enough for most folks (e.g. formatting it as a list with the correct links). If you want to do something outside their scope, you’ll need to get the “raw” data and then write the code to format the lists to meet your specifications.
So once you have an array of categories, you can put it into a two-column table, or do other things with it.
Does that help?
Forum: Fixing WordPress
In reply to: List Categories or Tags that starts withThis means going into your template file and adding the code that pulls out the categories you’d like to have appear.
You’ll want to look at the PHP function strncmp and the WordPress function get_categories.
Here’s one possible way to put them together:
$categories= get_categories(); $letter = 'A'; foreach ($categories as $category) { if ( strncmp($category->cat_name,$letter,1)==0) { $option = "<br/>"; $option .= $category->cat_name; echo $option; } }You’ll undoubtedly want something more complicated than that, and there are some examples in the Codex page for get_categories that may be helpful.
To do the same kind of thing with tags, you’d use the same get_categories function, but tell it you were interested in the “post_tag” taxonomy:
$args=array( 'taxonomy' => 'post_tag', ); $tags = get_categories($args);I hope that’s enough to get you started.