samateo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how can i customize page titleswere you able to follow the first two steps ?
- create a new folder in your themes directory
- create a file in that folder named ‘style.css’
Forum: Fixing WordPress
In reply to: how can i customize page titlesTo create a child theme and safely make changes that will overwrite a parent theme, do this:
- create a new directory in your themes folder (this will contain your child theme files)
- use a text editor (e.g. Notepad++) to create a new file in the folder you just created named ‘style.css‘
- put this at the top of the file
/* Theme Name: My New Theme Description: Child theme for the blogolife theme Author: Your name here Template: blogolife */ @import url("../blogolife/style.css"); #menu-item-962 a { color:#3d21eb; font-size:2rem; }** The template line connects the child theme to a parent (in this case blogolife). If a file isn’t found in your child theme, WordPress will reference the file in the parent.
** The import line gets styles from the parent theme
** ‘#menu-item-962 a’ targets your Fishing Contest link which has an id of ‘menu-item-962’. Styles go inside the { } The color and font-size are just examples I added, change them to fit your theme.
in admin, navigate to Appearance | Themes. Find the child theme you created and click ‘Live Preview‘ to preview your site and see the new styles you created for the Fishing Contest link.
When it looks the way you want it to look, click ‘Activate’.
Add any future changes to your child theme style.css. That keeps them from being overwritten if you ever update blogolife.
For example, to change the color of your side links to orange, add this to your child theme style.css
.widget ul li a { color: #FAA61C; }In this example, the child theme is overwriting line 852 of it’s parent theme (found in themes/blogolife/style.css) where the link color is set to #666
Forum: Fixing WordPress
In reply to: how can i customize page titlesTo identify the element you want to change, either view the source on your page and search for ‘Fishing Contest‘ or use a tool like firebug (firefox) or chrome web inspector (chrome) to inspect the element and see what you have to work with. Fishing Contest looks like this.
<li id="menu-item-962" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-962"> <a href="http://coldbloodedsl.com/?page_id=960">Fishing Contest</a> </li>The text is wrapped in an anchor tag which is wrapped in a list item tag.
To reference just the fishing text inside the list item (inside the a tag) you’d precede the id with the hast hag (which is used to reference ids) and follow that with ‘a’ reference to the anchor tag:
#menu-item-962 a { }To actually style the link, there are lots of things you can do. Change text color, font-size, font-weight, etc.
To make the text bigger, and change it’s color to blue for example, you could use:
#menu-item-962 a { color:#3d21eb; font-size:2rem; }If you put the change above into your style.css and clear cache / refresh your page, it’ll work, but if you update your theme, the change will be overwritten.
To keep this from happening, take a look at creating a child theme.
For a better understanding of css…
CSS tutorial
CSS Id and Class selectorsForum: Fixing WordPress
In reply to: how can i customize page titlesLinks in your side bar area are getting styles from theme file style.css line 852:
.widget ul li a { color: #666666; text-decoration: none; }Add any color, weight, font-family, etc. and refresh page / clear cache for changes to show up.
** Make sure to put changes in a Child Theme to keep them safe if the theme is updated.
Or, you can use a plugin like WP Google Fonts to change the styles for you.
Forum: Fixing WordPress
In reply to: Is that ok that wordpress logo appear on log in pageLogin Logo and Theme My Login are both plugins that allow you to replace the WordPress logo with your own.
OR, you can use add_action with ‘login_head’ in your theme functions.php to do it. Check out the codex page for an example using login_head.
One of the easier ways to redirect users on login/logout is with Peter’s Login Redirect plugin.
Otherwise, take a look at using the ‘login_redirect‘ filter if you want to put something together yourself.
Forum: Fixing WordPress
In reply to: Implementing a widget plugin to PHPin your functions.php, register a widget area with register_sidebar() called from ‘widgets_init’
function my_widget_area_init() { register_sidebar( array( 'name' => 'Home Page Widget Area', 'id' => 'my_widget_post_area_id', 'before_widget' => '<div>', 'after_widget' => '</div>', 'before_title' => '<h2>', 'after_title' => '</h2>', ) ); } add_action( 'widgets_init', 'my_widget_area_init' );Change the ‘id’ to whatever you want. This will create a widget area that shows up in admin | appearance | widgets. You can drop your mini-loops widget (or whatever widgets you want to add) into the new area created in your admin.
Next, you need to tell the html to look for the widget area that matches the id and output any widgets you’ve assigned.
In your index.php put this:
if(!dynamic_sidebar('my_widget_post_area_id')) { echo 'nothing to see here'; }Any widgets you’ve added in admin will appear in the new area. So if you add four widgets that each look for a specific type of post e.g. ‘news‘, ‘featured‘, ‘opinion‘, ‘a&e‘, you can fill in the areas with posts that match what you currently have on your home page.
Set ‘before_widget’, ‘before_title’, etc. or wrap the php in the if statement above in section, article, div or whatever html tags and attributes are appropriate for your site, and to give it the style you want. You’ve got similar options with mini-loops to set before item, add urls, etc.
Might be easier to leave the widget styles empty and recreate your current
div class="colart"in the widget itself under the mini-loops format area.** To use shortcodes in your widgets, you’ll need to have this in your functions.php if not already there
add_filter('widget_text', 'do_shortcode');Forum: Fixing WordPress
In reply to: Footer correctionsThis part displays the CyberChimps image
<img src="<?php echo get_template_directory_uri(); ?>/images/achimps.png" alt="credit" />Or you can remove the entire div used to hold the image:
<div class="row" > <div id="credit" class="twelve columns"> <a href="http://cyberchimps.com/"><img src="<?php echo get_template_directory_uri(); >/images/achimps.png" alt="credit" /></a> </div> </div>** Be aware that any changes you make to the theme will be overwritten if the theme is updated. Take a look at creating a child theme in order to preserve your changes.
Forum: Fixing WordPress
In reply to: Footer correctionsTo delete the CyberChimps image and link to cyberchimps website, remove everything Krishna indicated beginning with
<a ... and ending with ... /a>Forum: Fixing WordPress
In reply to: Implementing a widget plugin to PHPI’ve used widgets and Mini-Loops to do something similar.
To make this work, your theme would need to be widgetized with an area to drop in x mini-loop widgets that pull posts according to the criteria you set.
Tag the posts you create as ‘news‘, ‘featured‘, ‘opinion‘, ‘a&e‘, etc. Next, drop a mini-loops widget into the section of your theme where you want the specific group of posts to appear. Last, set the criteria for each widget to show just that group.
** Put any modifications to your theme in a child theme if you’re concerned about changes being overwritten.
Forum: Fixing WordPress
In reply to: Remove Dash / Hyphen in Title in this ThemeThe title is generated here
<title><?php wp_title(''); ?></title>More information on how to use this function wp_title
Since you are not using the dash as a separator in the call to wp_title and since the site title shows up after the dash on other pages, just not your blog, check your theme or plugins to see if anything is filtering the title and adding the dash but not adding (or maybe removing) the blogname on your posts, resulting in <post title> – <nothing>.
Might look for an if/else that checks for is_single()
Forum: Fixing WordPress
In reply to: I nedd .htm extensionsAs Jan said, /%postname%.htm will change the post permalink.
In addition, I tested the .html on Pages plugin and although it has not been updated in over two years (according to the site) it worked with 3.4.2 and added .html to my page urls. You can change the extension it uses by renaming the five references in plugin file html-on-pages.php from ‘.html’ with ‘.htm’
Forum: Installing WordPress
In reply to: Blank admin pageSetting define(‘WP_DEBUG’, true); in wp-config.php can often help you figure out what’s not working on a blank page.
Forum: Fixing WordPress
In reply to: changing font on 2010 for Site titleThat is the correct place, you can verify changes to the site title by replacing
font-family: sans-serif;with something likefont-family:"Times New Roman",Georgia,Serifor changing the color or font-weight. Make sure to refresh the page and you should see the change.Forum: Fixing WordPress
In reply to: Remove Base Category from PermalinksYou still may have reference to the category or tag base inside the ‘rewrite_rules’ option of the ‘options’ table in your database. Check the array for references to /blog.
WordPress will rebuild the list of rewrite rules if you rename the option_name value in that table to something like ‘rewrite_rulesbck’.
Forum: Fixing WordPress
In reply to: Remove Base Category from PermalinksDoes your .htaccess contain a rule that might be redirecting requests to /blog ? something like RewriteRule . /blog/index.php [L]