Dennis Barber
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hueman] How to remove footer spaceBefore adding/changing any code or css in your theme, it is highly advisable that you create and activate a child theme.
Then add this to the bottom of your child theme style sheet:
#page {
padding-bottom: 0;
}Forum: Fixing WordPress
In reply to: Adding Multiple Menus in a Template Built From ScratchDo:
if( is_page( ‘team’ ) ) {
<div id=”TeamPageNav”>
[YOUR team Navigation MENU CODE]
</div>
}where ‘team’ is the slug of your page. If you are not using a slug in the admin section, add it and try again.
Remove:
<? php wp_nav_menu( array( ‘theme_location’ => ‘Our Team Navigation’ ) ); ?>And report what error you are getting. Sorry, this is rushed as I have a meeting now. I apologize, I will not be available for a few hours…
Forum: Fixing WordPress
In reply to: Adding Multiple Menus in a Template Built From ScratchIn your template file where you have your menu code add a conditional is_page() wrap around the menu code. Here is an example, ( this is meant only to guide, not a verbatim, copy and paste, solution. div and nav are included as a reference only to help you understand):
if( is_page( ‘dispatch-consolidation’ ) ) {
<nav class=”dispatch-menu”>
[YOUR Services Navigation MENU CODE]
</nav>
}if( is_page( ‘team’ ) ) {
<div class=’team-menu’>
[YOUR team Navigation MENU CODE]
</div>
}Remove this (and for your team menu also):
<?php wp_nav_menu( array( ‘theme_location’ => ‘Services Navigation’ ) ); ?>as it points to where on the page the menu should be displayed, not which page it should be displayed on.
Forum: Themes and Templates
In reply to: [Hueman] Code to move over banner ad in headerIts not that <center> does not work, it is that it is being retired.
It is still a valid tag in HTML4 but may or may not work HTML5. So rather than continuing to use code that is being deprecated, or retired, it is better to start switching to newer standards. That is all.
I hope my explanation helps.
Forum: Themes and Templates
In reply to: [Hueman] Code to move over banner ad in header<center> has been deprecated as of html5. It is not suggested to use that. Instead, open your header.php file and wrap your code a in div with a class of your choice, like “bannerDiv”. Here is an example:
<div class="bannerDiv"> [YOUR CODE HERE] </div>Then to center add this in your css file:
.bannerDiv {
width: 728px;
margin: 2% auto;
}As far as making it responsive, you will have to look at the code that you are using to add the banner. When the element is placed an inline style element is added (728px). If you can change this, then you can make it responsive. Let us know if you can and I will try to walk you through the changes to your css.
Forum: Fixing WordPress
In reply to: Reverse results of Archive query?I think you need to change your $archive_query to (only the first line changes, the rest of the code stays the same):
<?php $archive_query = new WP_Query( array ( 'showposts' => '1000', 'orderby' => 'date', order' => 'ASC' ) ); while...Forum: Fixing WordPress
In reply to: Bullet point misalignmentBefore adding/changing any code or css in your theme, it is highly advisable that you create and activate a child theme. Then add this to your child theme style sheet:
.entry li {
list-style-position: outside;
margin-left: 1em;
}If you choose to skip the child theme, simply add the above code to the bottom of your style.css file in your theme folder where you installed WP (file path: root -> wp-content -> themes -> zeebizzcard -> style.css).
As far as the images go, I think that is a bandwidth issue or a server issue (most likely free server issue). A cache plugin may help, but also may not. The images loaded a little slowly the first time I accessed your site, but no troubles after that.
Personally, I did not see either of the issues your described in your post.
Forum: Fixing WordPress
In reply to: How do I edit a custom menu?In your admin panel choose Appearance->menus.
On the menus page choose the menu you wish to edit from the drop down on top (this will be the menu that is displayed on your side bar). Click ‘Select’
Now choose ‘Links’ from the left column and add the url to the website you wish to add and the link text to display. Click ‘Add to Menu’
Click the green ‘Save menu’ button on the right side.
You could simply add a top location to your calendar-events class in your child theme style sheet:
.mc-main .calendar-events {
top: 0;
}Then the event displays at the top of the calendar instead of below the clicked on date…
Forum: Themes and Templates
In reply to: [Hueman] Code to move over banner ad in headerThis is untested. Try changing screen to handheld and removing the max-width if you only want to keep it off of mobile devices so it looks like:
@media only handheld {
.ads-header-desktop { display: none; }
}Forum: Fixing WordPress
In reply to: I excerpt, you excerpt, he excerpts… but no excerpt availableThanks, but I just switched the content that is retrieved.
Forum: Fixing WordPress
In reply to: I excerpt, you excerpt, he excerpts… but no excerpt availablewhich is a well-known WordPress function for removing shortcodes. Now, there should be a way to strip divs, classes or whatever…
for this to work, we would need to identify the div, class, etc exactly or we would end up stripping ALL the divs, etc… Excerpts have not special identifier, so this would not work. We would have to add a class to the excerpt first to identify it, and if we did that we might as well just apply a filter to strip the first div (harder to do than say). But that is what I am actually working on doing…
Forum: Fixing WordPress
In reply to: I excerpt, you excerpt, he excerpts… but no excerpt availableSo… you can manually add excerpts to your posts!? Wonderful!
I am still working on the full solution, but here is the solution for the slider:
Write your excerpts manually using the method detailed above.
Then…
If you created a child theme (if you did not, I will cry, so do not tell me, and just follow these directions and skip the bits about creating and copying the file…), you will need to create a folder called ‘includes’ in your child theme folder and copy the file called ‘slider.php’ from the includes folder in the main theme folder to the new includes folder in your child theme directory. Then open the new copy of slider.php.
[Read this first as it becomes clear when you see the final bit]
Go to line 52 and copy $contents = get_the content(); to line 53 so you have that twice. Then wrap the first $contents = get_the content(); in a comment tag. On the uncommented line (line 53) change content() to excerpt(). Here is how it should look:<?php
/*$content = get_the_content();*/
$content = get_the_excerpt();
$content = strip_tags($content);
echo substr($content, 0, 150). ‘…’;
?>Save the file and refresh your screen. IF this does not work, the above is much easier to reverse (delete the get_the_excerpt line and uncomment the original).
This is a total hack, but it works…
Forum: Fixing WordPress
In reply to: I excerpt, you excerpt, he excerpts… but no excerpt availableHello again. Do you create all the posts for your website?
If yes: you can make your own excerpt when writing a new post. As of WordPress 3.1 this feature is auto-hidden. To enable to feature, on your ‘Edit Post’ page, at the top of the screen to the right side is a tab that reads: Screen Options. Click on that, then add a check mark to Excerpt. You can then write your own excerpt which will be displayed instead of the auto-excerpt created by WordPress when this field is empty.
If no (or you have too many posts to manually edit to add an excerpt to using the above method): this may prove to be more difficult as the excerpts are inside the slider. And, are they used anywhere else?
Forum: Themes and Templates
In reply to: My style.css must be retarded (or I am)I see it now. I apologize. I just “looked” at the overlay without “seeing” the words. Now, with your explanation, I see it. I will look for your new post.
I am happy that I could help you with your styling!