Tagged: x
-
AuthorPosts
-
October 29, 2016 at 5:23 pm #1236198
mariomillionsParticipantOn my tag page: http://www.celebratingdiversity.tech/article/iot-projects/
I’d like to display advanced custom fields and the description field. Which template do i need to modify? I have a child them installed and activated.
October 30, 2016 at 1:48 am #1236406
Rue NelModeratorHello There,
Thanks for writing in! If you want to display a custom content in the tag archive, you can simply use add_action() function. For example, please add the following code in your child theme’s functions.php file
function add_custom_content() { ?> <div class="custom-contents"> <p>I am a custom content. Please change me or add your custom content here.</p> </div> <?php } add_action('x_after_the_content_end', 'add_custom_content');You can use any of these locations:
– Before the content begins = x_before_the_content_begin
– After the content begin = x_after_the_content_begin
– Before the content ends = x_before_the_content_end
– After the content ends = x_after_the_content_endHope this make sense.
October 30, 2016 at 7:50 am #1236600
mariomillionsParticipantI added this code;
function add_custom_content() { ?>
<?php the_field(‘summary’); ?>
<?php }
add_action(‘x_before_the_content_begin’, ‘add_custom_content’);Nothing happened to my theme; is there another option? Is this not compatible with advanced custom fields?
October 30, 2016 at 7:54 am #1236602
mariomillionsParticipantTo clarify this code did add content but only on post pages. Is there a way to specify tag / archive pages?
October 30, 2016 at 8:26 am #1236614
mariomillionsParticipantIs there an index php that i can modify? I have tried to manipulate the function every way and nothing works.
October 30, 2016 at 9:11 am #1236635
ChristianModeratorHey Mario,
This would require custom development which is outside the scope of our support. Please see https://community.theme.co/kb/customization-best-practices/ for X customization guide or you might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/
Thank you for understanding.
October 30, 2016 at 9:42 am #1236654
mariomillionsParticipantCan you tell me if there is an archive template? What is the name of it?
October 30, 2016 at 10:14 am #1236679
ThaiModeratorHi There,
Please take a look at this find: x/framework/views/icon/wp-index.php
Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1236198 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
