Community Forums › Forums › Archived Forums › Design Tips and Tricks › Justified Post Titles in Generate Theme
Tagged: justified post titles
- This topic has 4 replies, 2 voices, and was last updated 8 years, 11 months ago by nico7980.
-
AuthorPosts
-
May 7, 2015 at 12:29 pm #150739nico7980Member
Hi there,
I'd like to know how can I justify all my post-titles in my blog. IDK really where to look though I suppose I have to edit a php file.
Thanks in advanced for the help!
Nico
http://www.marketingshaker.comMay 7, 2015 at 1:46 pm #150760Johann KratzikMemberIn style.css find h1.entry-title, h2.entry-title and add text-align: justify
Offering customization work for FREE – Read more
May 7, 2015 at 2:28 pm #150772nico7980MemberHey Johann,
Thanks for the reply. I donĀ“t have anything in my style.css file.
Seems like there was a local customization to create my blog.
Now I am having this error --> Parse error: syntax error, unexpected ':' in /home2/nico7980/public_html/marketingshaker.com/wp-content/themes/generate/functions.php on line 57
Need some help please! My website is down now.
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );/** Create additional color style options */
add_theme_support( 'genesis-style-selector', array( 'generate-blue' => 'Blue', 'generate-green' => 'Green', 'generate-orange' => 'Orange' ) );/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'Generate Theme' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/generate' );$content_width = apply_filters( 'content_width', 570, 450, 880 );
/** Add image sizes */
add_image_size( 'featured', 610, 170, TRUE );
add_image_size( 'grid', 290, 130, TRUE );/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'generate_viewport_meta_tag' );
function generate_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}/** Unregister layout settings */
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );
genesis_unregister_layout( 'sidebar-content-sidebar' );/** Unregister secondary sidebar */
unregister_sidebar( 'sidebar-alt' );/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );/** Add support for custom background */
add_custom_background();/** Reposition secondary navigation */
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_after_header', 'genesis_do_subnav', 15 );/** Reposition the post info function */
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
add_action( 'genesis_before_post_title', 'genesis_post_info' );/** Remove default post image */
remove_action( 'genesis_post_content', 'genesis_do_post_image' );/** Add custom post image above post title */
add_action( 'genesis_before_post_content', 'generate_post_image', 5 );
function generate_post_image() {if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) )
return;if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) )
{
printf( '', get_permalink(), $image, the_title_attribute ('echo=0'));
}}
/** Add support for 3-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 3 );/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'generate-box',
'name' => __( 'Generate Box', 'generate' ),
'description' => __( 'This is the generate box on the homepage.', 'generate' ),
) );May 7, 2015 at 2:55 pm #150786Johann KratzikMemberI think there's no way to attach a file to a forum post. Can you please send your functions.php to [email protected] ?
Offering customization work for FREE – Read more
May 7, 2015 at 3:18 pm #150788nico7980MemberJust emailed u. Thanks!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.