- This topic has 53 replies, 2 voices, and was last updated 9 years, 12 months ago by ashrafashraf.
-
AuthorPosts
-
May 14, 2014 at 1:13 am #30460ashrafashrafMember
How can i add post/category on my static home page ?
Thanks
May 14, 2014 at 11:07 am #30510ashrafashrafMemberHi Sakin,
Please, If i have a category of three posts.
How can i added on my front page(Home page is static) ?Help please!!!
May 14, 2014 at 11:15 am #30515ashrafashrafMemberCan do please check my site ? And tell what must i do ? please
May 14, 2014 at 10:13 pm #30606SakinKeymaster@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 );
May 14, 2014 at 11:47 pm #30626ashrafashrafMemberOk, I will add your Gallery in the Function.php, Where ?
Thanks
May 15, 2014 at 12:38 am #30633SakinKeymaster@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.
May 15, 2014 at 1:19 am #30645ashrafashrafMemberPlease ,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!!!
May 15, 2014 at 1:24 am #30647SakinKeymaster@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 );
May 15, 2014 at 1:27 am #30648ashrafashrafMemberYes, I did exact what you said,
I added the code on the functions.php
in the child theme folder.But my site became white.
May 15, 2014 at 1:28 am #30649ashrafashrafMemberI will add the new code again now.
May 15, 2014 at 1:29 am #30650ashrafashrafMemberIt is also not working.
May 15, 2014 at 1:35 am #30651SakinKeymaster@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.
May 15, 2014 at 1:36 am #30652SakinKeymasterYou 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.
May 15, 2014 at 1:36 am #30653ashrafashrafMemberI 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 );May 15, 2014 at 1:39 am #30654SakinKeymaster@ashrafashraf: If there any code in your child theme functions.php file or have you added the same function in parent theme.
May 15, 2014 at 1:39 am #30655ashrafashrafMemberYes sir,
Please :May 15, 2014 at 1:40 am #30656ashrafashrafMemberI don’t add Your code on the parent theme, I added only on the child theme functions.php
May 15, 2014 at 1:41 am #30657SakinKeymaster@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.
May 15, 2014 at 1:45 am #30660ashrafashrafMemberYes, 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.seMay 15, 2014 at 1:58 am #30662ashrafashrafMemberPlease, How can i adjust the alignment of the gallery : http://grab.by/wThk
to have the same distance from the left and right. Please
-
AuthorPosts
- The topic ‘add gallery’ is closed to new replies.