Forum Replies Created
-
Author
-
Radu
ModeratorIf you want to redirect the visitors to certain page use this
COPY CODEadd_action( 'template_redirect', 'my_membersip_restrict' ); function my_membersip_restrict() { global $pmpro_pages, $post; if ( is_user_logged_in() && !pmpro_hasMembershipLevel() ) { if (isset($post->ID) && !in_array($post->ID, $pmpro_pages)) { wp_redirect( 'http://www.example.com/mypage', 301); } } }
REplace http://www.example.com/mypage with your url
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Try with this snippet
COPY CODEadd_action( 'template_redirect', 'my_membersip_restrict' ); function my_membersip_restrict() { global $pmpro_pages, $post; if ( is_user_logged_in() && !pmpro_hasMembershipLevel() ) { if (isset($post->ID) && !in_array($post->ID, $pmpro_pages)) { wp_redirect( pmpro_url() ); } } }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Yes but if this doens’t have effect, you can try with this
COPY CODE<div style="width:728px;height:90px;background-color:red;display:inline-block;margin:20px 0 !important; clear:both !important;">
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorIF you are using two sidebars this will be the css
COPY CODE.kleo-isotope>.kleo-masonry-item, .kleo-isotope>li { width: 100%; }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorYou can remove the search form from content-none.php and this will not be showed.
Instead of deleting you can comment the code for later use
COPY CODE<?php //get_search_form(); ?>
If you want to show the search form conditional for logged in users search form and for the logged out users a certain message, you will have to look for a web developer.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 28, 2016 at 17:15 in reply to: Line height not working for body text in General Settings #119549Radu
ModeratorHi,
Maybe i don’t understand correctly, but the visual composer doesn’t work with posts…
How do you add the date,author and category mannualy ? For this, is the example from above to include that you have added mannualy into that div
COPY CODE<div class="manualpostmeta">April 28, Admin, Blog</div>
Then by using this css you can control that area.
COPY CODE.manualpostmeta { font-size:10px;line-height:20px; }
The line height of a content of a post can be controlled like this and the css cam be added to wp-admin -> theme options -> general options -> quick css
COPY CODE.article-content p { line-height: 2em; }
If you cannot handle with these you will have to look for a web programmer to help you to create a function that add automatically meta ( author,date,category )
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 27, 2016 at 23:56 in reply to: Line height not working for body text in General Settings #119386Radu
ModeratorHi,
If you want to have the “post meta” text smaller just include all of the meta into a div like this
COPY CODE<div class="manualpostmeta"> <small>April 28, Admin, Blog</small> </div>
And the CSS will be like this
COPY CODE.manualpostmeta small {font-size:11px !important;}
Regarding the text block element form Visual Composer you can highlight any portion of text by using bold,italic or underline set color for potions of text or different heading for that text.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Css for the read more button
COPY CODE.post-footer small span.muted.pull-right { background: red !important; padding: 0 10px; color: #fff; }
Ok let me know regarding the FTP
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Link to the support for kleo and scroll down https://archived.seventhqueen.com/kleo/
The css that i have provided to you it applies only between these resolutions 1439px – 1200px
COPY CODE@media (max-width: 1439px) and (min-width: 1200px) { .template-page.col-sm-12 .kleo-isotope>.kleo-masonry-item, .template-page.col-sm-12 .kleo-isotope>li, .template-page.col-sm-12 .section-container.container-full .kleo-isotope>.kleo-masonry-item, .template-page.col-sm-12 .section-container.container-full .kleo-isotope>li { width:100%; } }
If you need toat for all resolutions use this
COPY CODE.template-page.col-sm-12 .kleo-isotope>.kleo-masonry-item, .template-page.col-sm-12 .kleo-isotope>li, .template-page.col-sm-12 .section-container.container-full .kleo-isotope>.kleo-masonry-item, .template-page.col-sm-12 .section-container.container-full .kleo-isotope>li { width:100%; }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi again,
Ok in this case please copy this file : /wp-content/themes/kleo/buddypress/members/members-loop.php
to : /wp-content/themes/kleo-child/buddypress/members/members-loop.phpthen open the file /wp-content/themes/kleo-child/buddypress/members/members-loop.php look for this code around line 43
COPY CODE<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
And replace with replace 200 px with your desired values.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Regarding the forums, they are private and only users who open the ticket can read it.
Use this css if you need one item per row
COPY CODE@media (max-width: 1439px) and (min-width: 1200px) { .template-page.col-sm-12 .kleo-isotope>.kleo-masonry-item, .template-page.col-sm-12 .kleo-isotope>li, .template-page.col-sm-12 .section-container.container-full .kleo-isotope>.kleo-masonry-item, .template-page.col-sm-12 .section-container.container-full .kleo-isotope>li { width:100%; } }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 25, 2016 at 18:29 in reply to: WordPress admin fails with an error after installing Kleo on WordPress 4.5 #118812Radu
ModeratorNot marked as solutionRadu
ModeratorHi,
For the single product page use this css
COPY CODEbody.postid-4948 .main-color { background-image: url(http://imgsv.nikon-image.com/products/lens/nikkor/af-s_nikkor_200-500mm_f56e_ed_vr/img/sample/pic_03_l.jpg); background-repeat:no-repeat; background-attachment:fixed; }
4948 is the product id
For the shop page you can use also this
COPY CODEbody.woocommerce-page #main section.container-wrap.main-color { background-image: url(http://imgsv.nikon-image.com/products/lens/nikkor/af-s_nikkor_200-500mm_f56e_ed_vr/img/sample/pic_03_l.jpg); background-repeat:no-repeat; background-attachment:fixed; }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
For the third use this instead
COPY CODE.bbp-user-page .main-color { background-image: url(http://mercquest.com/wp-content/uploads/2016/03/metal003.gif) !important; background-repeat:repeat; background-attachment:fixed; background-color:transparent !important; }
Also i’ve added in improvement list this functionality to have custom background for page and posts, most probably in future this will be implemented in theme.
Cheers
R.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Integration with between that plugin and the theme it will require dedicated time for that and there is no quick fix for that. You can use this method
body.page-id-9743 .main-color {
background-image: url(http://imgsv.nikon-image.com/products/lens/nikkor/af-s_nikkor_200-500mm_f56e_ed_vr/img/sample/pic_03_l.jpg);
background-repeat:no-repeat;
background-attachment:fixed;
}page-id-9743 represents the id of the blog page and in this way i’ve matched the styles to apply
only to that page, in case you need to add bg to groups page use this selectorCOPY CODE.directory.members .main-color { background-image: url(http://imgsv.nikon-image.com/products/lens/nikkor/af-s_nikkor_200-500mm_f56e_ed_vr/img/sample/pic_03_l.jpg); background-repeat:no-repeat; background-attachment:fixed; }
or member page
COPY CODE.bbp-user-page .main-color { background-image: url(http://imgsv.nikon-image.com/products/lens/nikkor/af-s_nikkor_200-500mm_f56e_ed_vr/img/sample/pic_03_l.jpg); background-repeat:no-repeat; background-attachment:fixed; }
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
The next file will add next to the logo another logo
Add the attached file to wp-content/themes/kleo-child/page-parts/
Around line 148 ~ 149 you will see this, change sponsor url with yours and with your image link
COPY CODE<a href="http://sponsorurl.com"> <img id="logo_img" src="<?php echo $logo_path; ?>""> </a>
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.Radu
ModeratorTry to add beside the display:inline-block height:90, from example
COPY CODE<div style="display: inline-block !important; height:90px !important; margin:10px 0 !important ;"> Your add code </div>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts