Main Title Aegeus theme
-
i want my title to be centered but i cannot find where to edit. is there a source menu above “general settings”? i have edited the title correctly here, but there is still a title and tagline above it in the page. where do i find and edit/remove?
i am using aegeus theme. thank you.
-
Try adding style to your title in your WordPress files.
You should go to the wp-content/themes, choose your theme and edit the styles.css (should be named like that) file.
Usually the title class is named site-title. You should add there the following line of code, or edit the existing line (if such exists):text-align: center;That should center the title of your website.
-
This reply was modified 9 years, 8 months ago by
vrandjelovic94.
am i looking for header.php? if so WHERE do i edit the code (below)?
<?php
/**
* @package WordPress
* @subpackage Aegaeus
*/global $data, $post;
?>
<!DOCTYPE HTML>
<!– START html –>
<!–[if IE 8]>
<html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); echo ‘ class=”ie ie8″‘;?>>
<![endif]–>
<!–[if !IE]>–>
<html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes();
if(is_admin_bar_showing()) {
echo ‘ style=”margin-top:28 !important; “‘;
}?>>
<!–<![endif]–><!– START head –>
<head><?php if ( !is_404() ) print_meta_tags( get_the_ID() ); ?>
<?php add_favicon(); ?>
<link rel=”stylesheet” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” type=”text/css” media=”screen” />
<?php if($data[‘hb_use_custom_typography’]){ ?>
<!– BEGIN Typography Styles from Theme Options –>
<style type=”text/css”>
body, a, ul li a { font-family: <?php echo $data[‘hb_body_font’][‘face’]; ?>; font-size: <?php echo $data[‘hb_body_font’][‘size’]; ?> !important; color: <?php echo $data[‘hb_body_font’][‘color’]; ?>; font-weight: <?php echo $data[‘hb_body_font’][‘style’]; ?> !important; }
h1 { font-family: <?php echo $data[‘hb_h1_font’][‘face’]; ?>; font-size: <?php echo $data[‘hb_h1_font’][‘size’]; ?> !important; color: <?php echo $data[‘hb_h1_font’][‘color’]; ?>; font-weight: <?php echo $data[‘hb_h1_font’][‘style’]; ?> !important; }
h2 { font-family: <?php echo $data[‘hb_h2_font’][‘face’]; ?>; font-size: <?php echo $data[‘hb_h2_font’][‘size’]; ?> !important; color: <?php echo $data[‘hb_h2_font’][‘color’]; ?>; font-weight: <?php echo $data[‘hb_h2_font’][‘style’]; ?> !important; }
h3 { font-family: <?php echo $data[‘hb_h3_font’][‘face’]; ?>; font-size: <?php echo $data[‘hb_h3_font’][‘size’]; ?> !important; color: <?php echo $data[‘hb_h3_font’][‘color’]; ?>; font-weight: <?php echo $data[‘hb_h3_font’][‘style’]; ?> !important; }
h4 { font-family: <?php echo $data[‘hb_h4_font’][‘face’]; ?>; font-size: <?php echo $data[‘hb_h4_font’][‘size’]; ?> !important; color: <?php echo $data[‘hb_h5_font’][‘color’]; ?>; font-weight: <?php echo $data[‘hb_h5_font’][‘style’]; ?> !important; }
h5 { font-family: <?php echo $data[‘hb_h5_font’][‘face’]; ?>; font-size: <?php echo $data[‘hb_h5_font’][‘size’]; ?> !important; color: <?php echo $data[‘hb_h5_font’][‘color’]; ?>; font-weight: <?php echo $data[‘hb_h5_font’][‘style’]; ?> !important; }
h6 { font-family: <?php echo $data[‘hb_h6_font’][‘face’]; ?>; font-size: <?php echo $data[‘hb_h6_font’][‘size’]; ?> !important; color: <?php echo $data[‘hb_h6_font’][‘color’]; ?>; font-weight: <?php echo $data[‘hb_h6_font’][‘style’]; ?> !important; }
#nav li a{ font-family: <?php echo $data[‘hb_nav_font’][‘face’]; ?>; font-size: <?php echo $data[‘hb_nav_font’][‘size’]; ?> !important; color: <?php echo $data[‘hb_nav_font’][‘color’]; ?>; font-weight: <?php echo $data[‘hb_nav_font’][‘style’]; ?> !important; }
#footer, #footer ul, #main-sidebar, #mai-sidebar ul { font-family: <?php echo $data[‘hb_widget_font’][‘face’]; ?>; font-size: <?php echo $data[‘hb_widget_font’][‘size’]; ?> !important; color: <?php echo $data[‘hb_widget_font’][‘color’]; ?>; font-weight: <?php echo $data[‘hb_widget_font’][‘style’]; ?> !important; }<?php if( $data[‘hb_custom_font_import’] ) { echo $data[‘hb_custom_font_import’]; } ?>
</style>
<!– END Typography Styles –>
<?php } ?><!–[if IE]>
<link rel=”stylesheet” href=”<?php echo get_template_directory_uri(); ?>/css/font-awesome-ie7.css” type=”text/css” media=”all”/>
<![endif]–>
<!–[if lt IE 9]>
<script src=”http://html5shim.googlecode.com/svn/trunk/html5.js”></script>
<![endif]–><?php include ( HBTHEMES_INCLUDES . ‘/theme-options-styles.php’ ); ?>
<!– Custom CSS –>
<?php if ( $data[‘hb_custom_css_field’] ) { ?>
<style type=”text/css”>
<?php echo $data[‘hb_custom_css_field’] ; ?>
</style>
<?php } ?>
<!– Custom CSS END –><?php wp_head(); ?>
</head>
<!– END head –><?php $body_kikkey = “”;
if ( $data[‘hb_include_to_top’] )
$body_kikkey = “kikkey-top”;
?>
<!– START body –>
<body <?php body_class($body_kikkey); ?>><?php add_background_image ( get_the_ID() ); ?>
<!– START #wrapper –>
<div id=”wrapper” class=”<?php
$space = “”;
if ( !$data[‘hb_enable_bottom_line’] ){
echo ‘hide-bottom-line ‘;
}
if ( !$data[‘hb_enable_main_shadow’] ){
echo ‘no-shadow-layout ‘;
}
echo $data[‘hb_choose_layout_type’] . ‘ ‘;
if ( !is_page_title_enabled ( get_the_ID() ) ) {
echo ‘page-no-title’;
$space = ” “;
}
$hb_page_sidebar_position = sanitize_title ( get_post_meta ( get_the_ID() , ‘hb_page_sidebar_position’ , true ) );
if ( is_archive() || is_category() || is_tag() || is_search() || is_author() || is_attachment() ) {
if ( strtolower ( $data[‘hb_archive_pages_sidebar_position’] ) != ‘none’ )
$hb_page_sidebar_position = $data[‘hb_archive_pages_sidebar_position’];}
if ( page_has_sidebar ( get_the_ID() ) ) echo $space.$hb_page_sidebar_position;
?>”>
<?php add_map_dropdown(); ?>
<!– START #content –>
<div id=”content”><!– START #content-inner –>
<div id=”content-inner” class=”container clearfix”><?php add_theme_header(); ?>
<?php
// check if landing page and main navigation is disabled
if ( get_current_template() == “page-landing.php” ) {
if ( get_post_meta ( get_the_ID() , ‘hb_disable_main_navigation’, true ) != “on” ){
add_theme_main_nav();
}
}
else
add_theme_main_nav();
?>
<?php add_header_separator( get_the_ID() ); ?><?php add_page_featured_image_slider( get_the_ID() ); ?>
<!– START #main-content –>
<div id=”main-content” class=”clearfix” ><!– START #main-inner-wrapper –>
<div id=”main-inner-wrapper” class=”col-12 clearfix<?php if ( page_has_sidebar( get_the_ID() ) ) echo ‘ page-with-sidebar’; ?>”><?php add_page_title( get_the_ID() ); ?>
<?php if ( !page_has_sidebar( get_the_ID() ) ) { ?>
<!– START #fullwidth-wrapper –>
<div id=”fullwidth-wrapper” class=”section clearfix”>
<?php } else { ?>
<!– START #sidebar-page-wrapper–>
<div id=”sidebar-page-wrapper” class=”clearfix”><!– START #main-content-with-sidebar” –>
<div id=”main-content-with-sidebar” class=”col-8″>
<?php } ?><?php if ( get_post_meta ( get_the_ID() , ‘hb_include_breadcrumbs’ , true ) || is_archive() || is_search() ) hbthemes_breadcrumbs(); ?>
Hi, you should not be looking for header.php file, but the styles.css, as the styles for the header section, and for other sections, are stored there. It might be named custom.css also, it depends on the theme and the developer, but the common convention is that it is named styles.css
When you find the line of code (use ctrl + f, it will be easier), it should look something like this:.site-title{ ... }add the
text-align> center;
to the end of it, so it looks like this:.site-title{ ... text-align: center; }In future always transfer changes you’ve made to the style.css to a CSS plugin, or to a Child Theme:
– So that you can maintain your modifications easily;
– So that you can update the theme without erasing your modifications.style.css only reads:
/*———————————————————————————–
Theme Name: Aegaeus
Theme URI: http://preview.hb-themes.com/?theme=Aegaeus
Description: Ultimate Responsive Business Theme.
Author: HB-Themes
Author URI: http://www.hb-themes.com
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Version: 4.1Developed and designed by Hristina Zlateska & Branko Conjic for HB-Themes.
All files, unless otherwise stated, are released under the GNU General Public License
version 3.0 (http://www.gnu.org/licenses/gpl-3.0.html)———————————————————————————–*/
@import url(css/style.css) screen;
i do not think this is where i input the code. where am i NOT looking? what am i missing?
-
This reply was modified 9 years, 8 months ago by
The topic ‘Main Title Aegeus theme’ is closed to new replies.