Viewing 20 posts - 21 through 40 (of 54 total)
  • Author
    Posts
  • #30460
    ashrafashraf
    Member

    How can i add post/category on my static home page ?

    Thanks

    #30510
    ashrafashraf
    Member

    Hi Sakin,
    Please, If i have a category of three posts.
    How can i added on my front page(Home page is static) ?

    Help please!!!

    #30515
    ashrafashraf
    Member

    Can do please check my site ? And tell what must i do ? please

    #30606
    Sakin
    Keymaster

    @ashrafashraf: If you want to add the shortcode then I already give you the instruction. What is your shortcode, replace it with [gallery]

    function catchbox_extra_gallery() { 
    	echo do_shortcode('[gallery]');
    }
    add_action( 'catchbox_before_primary', 'catchbox_extra_gallery', 15 );
    #30626
    ashrafashraf
    Member

    Ok, I will add your Gallery in the Function.php, Where ?

    Thanks

    #30633
    Sakin
    Keymaster

    @ashrafashraf: Add that in our child theme functions.php file. Add in core theme functions.php file will work but you will loose this edit after you update the theme. So, it’s sage to add in in your child theme functions.php file.

    #30645
    ashrafashraf
    Member

    Please ,Sakin,
    I added your code,
    function catchbox_extra_gallery() {
    echo do_shortcode(‘[go_portfolio id=”flex9″]’);
    }
    add_action( ‘catchbox_before_primary’, ‘catchbox_extra_gallery’, 15 );

    And my site became white.

    Please Help me!!!

    #30647
    Sakin
    Keymaster

    @ashrafashraf: Where did you add in. If you have added it in our child theme functions.php file then did you option the code with php open

    <?php 
    function catchbox_extra_gallery() {
    echo do_shortcode('[go_portfolio id="flex9"]');
    }
    add_action( 'catchbox_before_primary', 'catchbox_extra_gallery', 15 );
    #30648
    ashrafashraf
    Member

    Yes, I did exact what you said,
    I added the code on the functions.php
    in the child theme folder.

    But my site became white.

    #30649
    ashrafashraf
    Member

    I will add the new code again now.

    #30650
    ashrafashraf
    Member

    It is also not working.

    #30651
    Sakin
    Keymaster

    @ashrafashraf: I added that code in my child theme and it’s working fine. Maybe you have added the code in function.php file in both child and parent.

    #30652
    Sakin
    Keymaster

    You can add in you child theme functions.php file code in http://gist.github.com/ and send me the url of the code and then I will check in your issue.

    #30653
    ashrafashraf
    Member

    I added the follwoing code on the functions.php on the child theme folder only.

    <?php
    function catchbox_extra_gallery() {
    echo do_shortcode(‘[go_portfolio id=”flex9″]’);
    }
    add_action( ‘catchbox_before_primary’, ‘catchbox_extra_gallery’, 15 );

    #30654
    Sakin
    Keymaster

    @ashrafashraf: If there any code in your child theme functions.php file or have you added the same function in parent theme.

    #30655
    ashrafashraf
    Member
    #30656
    ashrafashraf
    Member

    I don’t add Your code on the parent theme, I added only on the child theme functions.php

    #30657
    Sakin
    Keymaster

    @ashrafashraf: remove all the code above the code I gave you. Just add the only the code that I gave you in functions.php file in your child theme.

    #30660
    ashrafashraf
    Member

    Yes, It’s working,
    But it is not on the correct position, or may be , i need youe help to fix that,

    I want to become like: http://goo.gl/vI3HMj

    Please!!!
    check: http://www.idaat.se

    #30662
    ashrafashraf
    Member

    Please, How can i adjust the alignment of the gallery : http://grab.by/wThk

    to have the same distance from the left and right. Please

Viewing 20 posts - 21 through 40 (of 54 total)
  • The topic ‘add gallery’ is closed to new replies.