Tagged: x
-
AuthorPosts
-
September 27, 2016 at 12:02 pm #1192578
Michelle TParticipantIt’s not showing up when I add it in cornerstone. http://altainstitute.org/blog/
September 27, 2016 at 12:21 pm #1192617
ThaiModeratorHi There,
Please add the following code under functions.php file locates in your child theme:
add_action( 'x_before_view_global__index', 'print_blog_image' ); function print_blog_image(){ if(is_home()){ ?> <div class="x-section"> <div class="x-container"> <img src="http://placehold.it/1300x350"> </div> </div> <?php } }Hope it helps 🙂
September 27, 2016 at 5:43 pm #1193055
Michelle TParticipantHow don’t have a child theme set up. Anyway to do it without?
September 27, 2016 at 11:28 pm #1193387
Prasant RaiModeratorHello Michelle,
Thanks for writing in!
A child theme is a WordPress theme that inherits its functionality from parent theme. In that regards we always recommend our customer to setup child theme. This allows you to make code changes that won’t be overwritten when an X update is released.
Thanks.
September 28, 2016 at 12:08 pm #1194250
Michelle TParticipantThanks! I got the child theme set up and excited how easy set up was. I installed the code. Not sure if this was an issue before or not, but now when I go to http://altainstitute.org/blog/ and I go to edit in cornerstone, none of the editor features or the left handed bar shows up. I have gone into text and visual tabs and have deleted all the code. but I still have this grey image box that I can’t get rid of and no way to edit the page.
September 28, 2016 at 12:09 pm #1194251
Michelle TParticipantThis reply has been marked as private.September 28, 2016 at 1:33 pm #1194388
RupokMemberHi there,
It seems you are referring the placeholder image as “gray image box”. You need to change the image path
http://placehold.it/1300x350with your own uploaded image path that you want to use.Hope this makes sense.
October 1, 2016 at 9:11 pm #1198958
Michelle TParticipantUnfortunately, I can’t edit anything. See my attachments. Cornerstone is not available for some reason on this page. Nor can I edit it another way. All editors are missing. Please help! Thanks!
October 2, 2016 at 2:17 am #1199069
ChristopherModeratorHi there,
Blog page is not editable and its content generates automatically base on number of posts.
Thanks.
October 3, 2016 at 9:55 am #1200541
Michelle TParticipantI used to be able to edit it. I at least need to get that empty image off. Can you please remove it for me with the login info above?
October 3, 2016 at 11:36 am #1200671
JoaoModeratorHi Michelle.
This is the image you hard coded by adding the code provided by Thai:
add_action( 'x_before_view_global__index', 'print_blog_image' ); function print_blog_image(){ if(is_home()){ ?> <div class="x-section"> <div class="x-container"> <img src="http://placehold.it/1300x350"> </div> </div> <?php } }As you can see there is an url inside the code http://placehold.it/1300x350n this is where you should place the URL of the image you want to show, if you want to remove this, simply remove the code you have added.
Hope it helps
Joao
October 5, 2016 at 10:46 am #1203588
Michelle TParticipantCool! I got the image in there. Thanks for the explaination. Now I just need to know how to center the image? I tried putting align=”middle” after the source, but that didn’t work. Thanks!
October 5, 2016 at 11:06 am #1203624
JoaoModeratorHi There,.
Please add the following code to Appereance > Customizer > Custom > CSS
.blog .x-main.full { text-align: center; }Hope that helps,
Joao
October 5, 2016 at 2:21 pm #1203902
Michelle TParticipantThank you kindly! Worked like a charm. 🙂
October 5, 2016 at 5:34 pm #1204115
JadeModeratorYou’re welcome Michelle.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1192578 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
