Dan Cole
Forum Replies Created
-
Forum: Requests and Feedback
In reply to: What Should 2011 Hold for WordPress?I wish WordPress sites could network together, creating one seamless back-end between each site. You wouldn’t friend a contact on a single social site, but connect your website and your identity with theirs.
Forum: Fixing WordPress
In reply to: Search box and achives stuck on bottomThe same way I told you how to do the sidebar. You look through the code until you find what div tag is wrapping the content, then find the CSS that is styling that element, and edit the width of the content or the margins of the content.
I could have told you what lines of code to edit and what to edit them to, had you told me what theme you are using or had you provided a link to your website. It helps to actually see the problem first hand. I can still do this for you if you provide more information.
Forum: Fixing WordPress
In reply to: Search box and achives stuck on bottomBrowsers will wrap content if it gets to big. This includes words in paragraphs, but also child elements in a parent element. Since the content and sidebar elements have a combined width that is larger than their parent element, the sidebar is wrapped down into a space that will fit it. The fact that it doesn’t appear to wrap like text is due to the fact that text has all the same alignment for a paragraph, while child-elements can be aligned independently, so it appear to have only been moved down.
Here is an image showing the invisible borders around each element: https://imagebin.ca/view/H4MkadYP.html
Forum: Fixing WordPress
In reply to: Adding a link to a Products PageSome themes have an Options page under Appearance.
The other options is to edit the file manually. There is a theme editor under Appearances > Editor, but you might not have the right permissions to edit the files. If you have the right file permissions, then you have to change the file currently being edited to Main Index Template (index.php). Otherwise you have to use FTP or whatever option your host provides for editing files, in which case you have to browse in a couple of folders to your active theme’s folder.
Forum: Fixing WordPress
In reply to: Adding a link to a Products PageThat problem is due to your theme using the_excerpt instead of the_content on the homepage. Authors who post a lot often want the homepage to have a summary of each post. If you don’t want this you may be able to find an option to switch it within your theme. If there isn’t an option you will have to edit the index.php file and find it within your theme folder, which is in /wp-content/themes/. Within that file you will see a lot of PHP and HTML, you will have to look for or use the find feature to locate the phrase the_excerpt and replace it with the_content.
As an example, in WordPress 3.0, the TwentyTen theme has this line in the loop.php file and is on line 70:
<?php the_excerpt(); ?>
Forum: Fixing WordPress
In reply to: Search box and achives stuck on bottomMost support people don’t look at the newest tickets, so bumping doesn’t help.
You appear to have the Firebug add-on for Firefox. You can inspect elements to see what the HTML code looks like, as well as what CSS is being apply to elements of the theme. If you right-click on your sidebar and click Inspect Element, it will pop-open a window and have some element selected. Look for a parent element of that selected item that is a div tag. If you hover over the div tag it will select the entire sidebar in your browser. Click on that div tag and look at the CSS that is being applied. It will list the styles from most important to least important. Look for one property called width, then go change that value in your theme. If your do it in Firebug it will show you the change temperately, so you will have to use FTP or WordPress editor to change it for real.
For the TwentyTen Theme the CSS in Firebug will look like this:
#primary, #secondary { style.css (line 71)
float:right;
overflow:hidden;
width:220px;
}Forum: Fixing WordPress
In reply to: Search box and achives stuck on bottomIt looks like your WordPress Theme has a fixed width for the container of the content and sidebar. The content and sidebar are both floating and have a combined width that is greater than the width of the container, which causes the sidebar to get push down. You will need to modify the width of one of these three elements in your theme to correct the problem by editing the CSS in the style.css file. (It’s most likely in the style.css file, but not always.)
Forum: Fixing WordPress
In reply to: How to exclude categoriesI’m not sure how to exclude, but you can include categories by adding a SQL statement like:
AND $wpdb->post2cat.category_id IN (1,2,3,4,5,6,7,8,9)
which would make your code look like:
<?php echo $numposts = $wpdb->get_var(“SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_type = ‘post’ AND $wpdb->post2cat.category_id IN (1,2,3,4,5,6,7,8,9)”);
if (0 < $numposts) $numposts = number_format($numposts); ?>Forum: Fixing WordPress
In reply to: Adding a link to a Products PageSince your new to WordPress, I will not yell at you for calling it “word press”.
Make sure you have the right URL. In order to insert a link, select the test you want to be a link, then click the button that looks like a single link of chain (Alt+Shift+A). A window should appear and ask to to insert/edit the link. When you paste in the url or write it make sure it’s the same as the of the page you want it to point to, i.e. no
https://https://example.com
. At this point don’t worry about the title, class, or target, and click insert. The visual editor should make the link blue with an underline, but it will not work when clicked because it’s only for show. Then Preview the post and click on the link or check it after you’ve published the post, then link will work when not inset the editor and actually on the web page.If something is still wrong with it, please post back here with the URL of the post with the link in question. It’s hard to say what the real problem is, since I only have limited information about it. What URL did you want the link to point to and what URL did it take you to, or did the link not appear?
Forum: Fixing WordPress
In reply to: Navigation and Sidebar in Theme 2010.This is a duplicate topic by Inv_Trdr, the other post (419514) has been replied to.
Forum: Fixing WordPress
In reply to: Navigation and Sidebar in Theme 2010.This can be done by editing the CSS in the style.css file of the TwentyTen Theme. The HTML code that provides the structure of the design of your website uses tags, ids, and classes, which is used by CSS to tell the browser what part of your site to style with a particular effect.
You should notice in the source code of your website that the sidebar titles has HTML code like:
<h3 class="widget-title">Meta</h3>
. You could then find widget-title in your style.css file (on line 1118) and modify it in any way you want, such as having the font size bigger by using mark-up like this:widget-title { font-size:20px; }
Website designers and developers often use a Firefox browser plugin called Firebug to easily browse the source code of a web page and see what CSS is being apply to particular elements of the page.
It might be useful to browse around some of the pages in the Codex, such as WordPress Lessons.
Forum: Fixing WordPress
In reply to: make “home” page last: page orderThe function call wp_nav_menu displays that horizontal navigational bar in the TwentyTen Theme. You can replace your current links there by creating a new menu on the back end page: Appearance > Menus.
Forum: Fixing WordPress
In reply to: remove linking from post metaOff Topic
Your other topic, “not getting to single post view” is marked as resolved and does have replies, if that is what your talking about when you said, “(I’ve inquire here about that before, but no response)”.
onecolumn-page.php is the name of the template with one column, no sidebar. You can easily select it when editing pages, but the same is not true for posts. If you want to have a single post to use that template, just copy and paste that template file in the same folder, then rename it to post-id.php, where id is replaced with the actual ID of that post, e.g. 3. The https://codex.www.ads-software.com/Template_Hierarchy page in the Codex has related information.
Forum: Fixing WordPress
In reply to: remove linking from post metaThemes and Child-Themes decide what is display and what is not, as well as style of the website and the linking within the titles and post meta information.
You can edit your theme if you want to remove some of the links or direct them to another page. The TwentyTen theme has a twentyten_posted_on function that prints out the meta data about the post. It can be found in the functions.php file, on line 499. This doesn’t account for your child-theme, which may or may not modify that.
index.php is the most generic template for web pages and is most often the home page. single.php is the template file for single posts. page.php is the template for pages.
I’ll post later about, “My blog postings page never gets to the single post, single column view”, I need to look into it since I’ve never used it.
Forum: Fixing WordPress
In reply to: get_option(posts_per_page) deletes contentPersonally I would create a quick plugin that looks something like this:
<?php /* Plugin Name: Fike_Extra_Space Plugin URI: https://www.ads-software.com/ Description: Add extra space Version: 1.0 */ function fike_add_space() { echo "<div class='extra'></div>"; } $fike = 1; while ( $fike < get_option('posts_per_page') ) { add_action('fike_add_space', 'in_the_loop_' . $fike); } ?>
I haven’t tested this code, but you’ll get the basic idea. It should add that div tag to the first post through the 2nd to last post on every page, unless there is only one post on the page.