gidd
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Spun] page widthYou can try this one more line:
.page #content{ padding-left: 50px; }
Forum: Themes and Templates
In reply to: [Spun] page width1. All pages have the same width:
body #page{ width: 700px; }
2. Center the circles:
.blog #main{ width: 600px; margin: 0 auto; }
I see the post comment button is on the right side. You can fix this by adding:
#respond p.form-submit{ clear: both; }
Forum: Themes and Templates
In reply to: [Spun] page widthIf you put the css on the top of the stylesheet.css, it might not apply. You can try it at the bottom instead.
Forum: Themes and Templates
In reply to: [Spun] page widthI think you can try this css. Just make sure it overrides the default style of your theme.
.blog #page{ width: 800px; } .blog #main{ width: 700px; }
Forum: Themes and Templates
In reply to: Show different versions of single.phpspanglishwebs, you can create a custom php file to display a post of your choice by hooking into template_include as below:
add_filter('template_include', 'my_template_include'); function my_template_include( $template ){ $url = gidd_current_url(); if ( $url == "https://localhost/demo/print-coupon/" ){ $my_template = get_stylesheet_directory() . '/print_coupon.php'; return $my_template; } return $template; }
Here is the source for getting current url.
Then, in print_coupon.php, you can write a custom query to get the post content as below:
$post_id = 4; $post = get_post( $post_id ); echo apply_filters('the_content', $post->post_content);
Hope this helps.
Forum: Themes and Templates
In reply to: Display only the value from the Custom FieldI don’t know how your theme is structured. Usually, it is page.php. You might put the code in a location where get_the_ID() cannot read the page ID.
You can test this by replacing get_the_ID() with the real page ID from WordPress admin.
Forum: Themes and Templates
In reply to: Change fonts for navbar and drop down menuYes, you can.
Forum: Themes and Templates
In reply to: Change fonts for navbar and drop down menuHello,
Here is how you can change the font in nav menu.
body #access .menu-header li a { font-family: "Rock Salt", serif; }
Hope this helps.
Forum: Installing WordPress
In reply to: Setup errorYour zipped file might be corrupted and make the unzip process unsuccessful. Just download a new file and test it on your local machine first.
Forum: Themes and Templates
In reply to: special color for only one menu-entryIt is nice to hear this. Here are answers to your questions:
1. The number of the menu item is generated by WordPress. You just open your home page and use firebug to inspect it.
2. Yes, you can put the code above in style.css of your child theme.
Forum: Themes and Templates
In reply to: Home Page Extends When Not Supposed ToI find out that the html code was not generated properly like the other page. There were two additional
<br>
at the bottom and anotherdiv
.
And the bar at the bottom was in wrong place.Forum: Themes and Templates
In reply to: Another Pagination ProblemHello thegrrrague. Working with pagination on the homepage is a bit tricky because showing posts on home page is considered a custom loop. Thus, you need to deal with pagination by yourself.
You can read my previous thread about this problem:
https://www.ads-software.com/support/topic/how-to-get-previous-page-it-doesnt-existAnd don’t forget to checkout this url to deal with custom pagination:
https://weblogtoolscollection.com/archives/2008/04/19/paging-and-custom-wordpress-loops/Forum: Themes and Templates
In reply to: special color for only one menu-entryHello exle. Here is how you can change the color for just one menu item:
1. You add a
css class
to the menu by using menu link under Appearance.
2. In your stylesheet, you can write css to alter the style of that menu.However, if you are not familiar with these things. You can try this code. Just put it in your
style.css
:body #menu-item-922 a{ color: red; }
Forum: Fixing WordPress
In reply to: Side Bar MisplacedYou can try this. Just add it to your
style.css
:body #content_wrapper .inner .inner_wrapper .sidebar_content{ width: 665px; }