Forum Replies Created
-
AuthorPosts
-
han
Keymasterreplace
echo $page_object->post_content;
with
echo do_shortcode($page_object->post_content);han
KeymasterIf you want a static page and blog posts, you need to create a new page called home.php and you can add the code below (Replace the $page_id value with your page ID, you can see page ID on the URL when you edit a page / hover edit link via wp admin)
<?php add_action( 'omega_content', 'show_page_content', 4); function show_page_content() { $page_id = 1632; $page_object = get_page( $page_id ); echo '<h1>' . $page_object->post_title . '</h1>'; echo $page_object->post_content; } get_header(); ?> <main class="<?php echo omega_apply_atomic( 'main_class', 'content' );?>" <?php omega_attr( 'content' ); ?>> <?php do_action( 'omega_before_content' ); do_action( 'omega_content' ); do_action( 'omega_after_content' ); ?> </main><!-- .content --> <?php get_footer(); ?>There are many ways to do it but this is considered the fastest way to do and to explain 🙂
han
KeymasterA static home page will load a page you chose. Go to Administration > Settings > Reading panel, select ‘Your latest posts’ Front page displays and ‘5’ for ‘Blog pages show at most’.
February 20, 2014 at 2:25 am in reply to: YITH Zoom Magnifier conflicts with the menu appearance. #1790han
KeymasterGreat! Kindly leave a review at http://wordpress.org/themes/shopping
han
KeymasterHave you created translation for Omega parent theme? You can use ‘Codestyling Localization’ plugin to translate parent and child themes via wp admin.
February 19, 2014 at 4:42 am in reply to: YITH Zoom Magnifier conflicts with the menu appearance. #1786han
Keymasteradd this CSS code will fix the issue
.omega-nav-menu .sub-menu { z-index: 10000; }han
Keymastersimply find ‘omega_child_theme_setup’ function in functions.php and add these two lines of code like this
function omega_child_theme_setup() { add_theme_support( 'omega-footer-widgets', 4 ); remove_action( 'omega_before_header', 'omega_get_primary_menu' ); add_action( 'omega_after_header', 'omega_get_primary_menu' ); }Hope that helps 🙂
han
Keymaster@pixeltoko, you should put your code inside ‘omega_child_theme_setup’ function
To remove a hook, the $function_to_remove and $priority arguments must match when the hook was added.han
KeymasterYou can hide it via CSS, go to “Appearance > Customize > CSS”, and put this
.site-description { display:none; }han
Keymaster.archive-title { display: none; }han
KeymasterGo To “Appearance > Theme Settings”
han
KeymasterTo align Logo to the left side of the header, Go to “Appearance > Customize > CSS” and add insert
.title-area { text-align: left; }Logo image will link to homepage by default, you don’t need to do anything.
han
KeymasterGo to “Appearance > Customize > CSS” and add below code to override width attribute
.wrap { max-width: 1024px; } .content { width: 650px; }han
Keymasterto adjust subpages, go to “Appearance > Customize > CSS” and add this
.omega-nav-menu .sub-menu a, .omega-nav-menu .children a { font-size: 13px; padding: 10px 20px; }han
KeymasterPlease download the latest church theme here. That should fix your issue
-
AuthorPosts
