han

Forum Replies Created

Viewing 15 posts - 301 through 315 (of 434 total)
  • Author
    Posts
  • in reply to: Add a few post to home page #1797
    han
    Keymaster

    replace
    echo $page_object->post_content;
    with
    echo do_shortcode($page_object->post_content);

    in reply to: Add a few post to home page #1794
    han
    Keymaster

    If 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 🙂

    in reply to: Add a few post to home page #1792
    han
    Keymaster

    A 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’.

    in reply to: YITH Zoom Magnifier conflicts with the menu appearance. #1790
    han
    Keymaster

    Great! Kindly leave a review at http://wordpress.org/themes/shopping

    in reply to: Translation of labels #1787
    han
    Keymaster

    Have you created translation for Omega parent theme? You can use ‘Codestyling Localization’ plugin to translate parent and child themes via wp admin.

    in reply to: YITH Zoom Magnifier conflicts with the menu appearance. #1786
    han
    Keymaster

    add this CSS code will fix the issue

    .omega-nav-menu .sub-menu {
        z-index: 10000;
    }
    in reply to: Omega Header #1784
    han
    Keymaster

    simply 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 🙂

    in reply to: Omega Header #1782
    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.

    in reply to: Tagline issue #1781
    han
    Keymaster

    You can hide it via CSS, go to “Appearance > Customize > CSS”, and put this

    .site-description {
      display:none;
    }
    in reply to: Church Theme – How to hide page name? #1763
    han
    Keymaster
    .archive-title {
        display: none;
    }
    in reply to: Enable comments #1762
    han
    Keymaster

    Go To “Appearance > Theme Settings”

    in reply to: omega header link and alignment #1761
    han
    Keymaster

    To 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.

    in reply to: Increase width Shopping theme #1760
    han
    Keymaster

    Go to “Appearance > Customize > CSS” and add below code to override width attribute

    .wrap {
        max-width: 1024px;
    }
    
    .content {
        width: 650px;
    }
    in reply to: header church theme #1756
    han
    Keymaster

    to 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;
    }
    in reply to: church odd header #1755
    han
    Keymaster

    Please download the latest church theme here. That should fix your issue

Viewing 15 posts - 301 through 315 (of 434 total)