Tagged: x
-
AuthorPosts
-
October 30, 2016 at 11:34 am #1236750
DragonBallZModsParticipantHello Themeco,
I need to rename the Category archive from the portfolio to another word.
Please help me with this, because I can only find results to remove it or keep it.Thanks in advance!
October 30, 2016 at 11:42 am #1236759
RupokMemberHi there,
Thanks for writing in! You can do this with Child Theme by following this thread – https://community.theme.co/forums/topic/link-to-portfolio-categories/#post-384599
If you want a quick solution instead of using Child Theme, you can add this under Custom > JavaScript in the Customizer.
jQuery ( function( $ ) { $('.tax-portfolio-category .h-landmark span').text("Mods"); } );Cheers!
November 1, 2016 at 9:57 am #1239253
DragonBallZModsParticipantThis reply has been marked as private.November 1, 2016 at 11:22 am #1239371
RupokMemberHi there,
You can use any ad plugin to use ad there because it’s out of the content area and can not be placed ad there usually.
Thanks!
November 1, 2016 at 11:44 am #1239400
DragonBallZModsParticipantThanks rupok, I did something simular. I just wonder if you can give me a custom code to change the white color behind this add. Because I have no idea how I could do this myself. The css counts for the whole background. The advertisment is placed between header and navbar exactly as you can see in my file. Thanks in advance.
November 1, 2016 at 1:23 pm #1239533
RupokMemberHi there,
Thanks for writing back. Do you want transparent background for the ad? You can use this CSS :
.x-boxed-layout-active .site, .googlepublisherpluginad { background-color: transparent; }To get a better effect, you can remove the border from boxed layout as well with this :
.x-boxed-layout-active .site { box-shadow: none; }Cheers!
November 1, 2016 at 4:06 pm #1239817
DragonBallZModsParticipantIt works and It looks great, but my forums and portfolio are now also half transparant wich is very unclear. =)
Is there a way to prevent that?November 2, 2016 at 12:03 am #1240270
RupokMemberHi there,
That’s expected because if you want to make the ad background transparent, you need to make the container behind transparent as well. I’d suggest to keep this as is instead of transparent background.
Thanks!
November 5, 2016 at 11:47 am #1245131
DragonBallZModsParticipantThanks, I will do that, another small thing. I have changed from template and now my portfolio says image on every item i want to change the word ‘Image’ to ‘Mod’. Can you tell me how? Thanks in advance!
November 6, 2016 at 12:55 am #1245564
Rue NelModeratorHello There,
Thanks for the updates! To change the word ‘Image’ to ‘Mod’, please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript
(function($){ $('.x-portfolio .entry-cover-content span:first-child').text('Mods'); })(jQuery);
Hope this helps.
November 18, 2016 at 12:36 pm #1262805
DragonBallZModsParticipantThanks alot Rue you helped me alot!
I guess this will be the last thing i need help with, I changed to the new layout and I want something different if possible.
Can you tell me how to place a custom adsense ad code between the Tags of this portfolio and the download button? Where exactly is shown in the image on the right.Btw, the image indicates that I can place ads under it but that also can’t be done because they won’t count as paragraphs because the adsense plugin is badly optimised unfortunatly.
Thanks in advance, and for all the help again!
– Ultra
November 18, 2016 at 8:50 pm #1263279
Rue NelModeratorHello There,
Thanks for the updates!
1] To place a custom adsense ad code between the Tags of this portfolio and the download button:
Because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.Once you have your child theme active and ready, please follow the following steps below (I am assuming that you are using Renew stack):
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file<?php // ============================================================================= // VIEWS/RENEW/CONTENT-PORTFOLIO.PHP // ----------------------------------------------------------------------------- // Portfolio post output for Renew. // ============================================================================= ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( ! x_is_portfolio_item() ) : ?> <div class="entry-featured"> <?php x_portfolio_item_featured_content(); ?> <div class="entry-cover"> <div class="entry-cover-content"> <span><?php echo get_post_meta( get_the_ID(), '_x_portfolio_media', true ); ?></span> <h2 class="entry-title entry-title-portfolio"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a> </h2> <span><?php echo get_the_date( 'm.d.y' ); ?></span> </div> </div> </div> <?php endif; ?> <div class="entry-wrap cf"> <?php if ( is_singular() ) : ?> <div class="entry-info"> <div class="entry-featured"> <?php x_featured_portfolio( 'cropped' ); ?> </div> <header class="entry-header"> <h1 class="entry-title entry-title-portfolio"><?php the_title(); ?></h1> <?php x_renew_entry_meta(); ?> </header> <?php x_get_view( 'global', '_content', 'the-content' ); ?> </div> <div class="entry-extra"> <?php x_portfolio_item_tags(); ?> <!-- Google Ad code starts here --> <!-- Place your Google Ad code here --> <div>Google Ad code placeholder</div> <!-- Google Ad code ends here --> <?php x_portfolio_item_project_link(); ?> <?php x_portfolio_item_social(); ?> </div> <?php endif; ?> </div> </article>3] Save the file named as
content-portfolio.php4] Upload this file to your server in the child theme’s folder
wp-content/themes/x-child/framework/views/renew/Hope this helps. Please let us know how it goes.
January 16, 2017 at 2:31 pm #1332537
DragonBallZModsParticipantHello Rue, this worked out pretty good!
Thank you for the help. Can you also help me to force people to like my Facebook page
when they click the download button, or in your perspective of view; the portfolio button.I want to gain more social interaction, let me now if there is a solution or something
simular to do this. Liking before entering the mod page is also good enough.Thanks in advance!
– Ultra
January 16, 2017 at 6:49 pm #1332875
DarshanaModeratorHi there,
Regretfully, that is not a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.
Thanks for understanding.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1236750 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
