Forum Replies Created
-
Author
-
RoaderParticipant
NOTES:
// Limit access to DashBoard only to Admin
But, if you wants access for an editor use:
COPY CODEadd_action( 'init', 'blockusers_init' ); function blockusers_init() { if ( is_admin() && ! current_user_can( 'administrator') && ! current_user_can( 'editor')&& ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { wp_redirect( home_url() ); exit; } }
For Admin, Editor and Shop Manager:
COPY CODEadd_action( 'init', 'blockusers_init' ); function blockusers_init() { if ( is_admin() && ! current_user_can( 'administrator') && ! current_user_can( 'editor') && ! current_user_can( 'shop_manager')&& ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { wp_redirect( home_url() ); exit; } }
// Change your username by a nickname
After you add this code to your functions.php, go to: Dashboard / Users and, Update all users. For example: If your username is lover360, and your name-last-name is: John Wick, so, your nickname needs to be: johnwick, and your Public name to display: John Wick. Remember, lover360 is your Login, and this needs to be secret.
For new members this code works automatic.
RoaderParticipantOPTIMIZATIONS
UPDATESWorking fine on HostGator (APACHE).
————————–.HTACCESS. BASIC SECURITY AND SPEED
Note: In the line: RewriteRule .* http://example.com/? [L,R=302], change example.com with your own Url.COPY CODE# SECURITY START # Protect htaccess <files .htaccess> order allow,deny deny from all </files> # Protect wpconfig.php <files wp-config.php> order allow,deny deny from all </files> # Protect wp-includes <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^wp-admin/includes/ - [F,L] RewriteRule !^wp-includes/ - [S=3] RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] RewriteRule ^wp-includes/theme-compat/ - [F,L] </IfModule> # Protect Headers Header set X-XSS-Protection "1; mode=block" Header set X-Content-Type-Options nosniff Header always append X-Frame-Options SAMEORIGIN Header set X-Content-Security-Policy "allow 'self';" Header always unset "X-Powered-By" Header always edit Set-Cookie "(?i)^((?:(?!;\s?HttpOnly).)+)$" "$1; HttpOnly" # Block WP File Access <FilesMatch "^(install\.php|php\.ini|readme\.html|license\.txt)"> Order Allow,Deny Deny from all </FilesMatch> # Block xmlrpc.php if you don’t use that. <files xmlrpc.php> order allow,deny deny from all </files> # Block debug.log <files debug.log> order allow,deny deny from all </files> # Disable Index Views Options -Indexes # Disable Trace_Track <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] </IfModule> # Block User ID Phishing Requests <IfModule mod_rewrite.c> RewriteCond %{QUERY_STRING} ^author=([0-9]*) RewriteRule .* http://example.com/? [L,R=302] </IfModule> # Forbid Proxy Comments <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_METHOD} ^POST RewriteCond %{HTTP:VIA} !^$ [OR] RewriteCond %{HTTP:FORWARDED} !^$ [OR] RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_HOST} !^$ [OR] RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$ RewriteRule wp-comments-post\.php - [F] </IfModule> # Deny Bad Query Strings <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{QUERY_STRING} ftp: [NC,OR] RewriteCond %{QUERY_STRING} http: [NC,OR] RewriteCond %{QUERY_STRING} https: [NC,OR] RewriteCond %{QUERY_STRING} mosConfig [NC,OR] RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR] RewriteCond %{QUERY_STRING} (\;|'|\"|%22).*(request|insert|union|declare|drop) [NC] RewriteRule ^(.*)$ - [F,L] </IfModule> ErrorDocument 403 /403.shtml ErrorDocument 404 /404.shtml ErrorDocument 500 /500.shtml ServerSignature Off LimitRequestBody 10240000 # SECURITY END # SPEED START # Habilitar compresion Gzip <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </ifModule> # BEGIN WEBSITE SPEED BOOST # Time cheat sheet in seconds # A86400 = 1 day # A172800 = 2 days # A2419200 = 1 month # A4838400 = 2 months # A29030400 = 1 year # Test which ETag setting works best on your Host/Server/Website # with Firefox Firebug, Firephp and Yslow benchmark tests. # Create the ETag (entity tag) response header field # This is probably not the optimum choice to use. #FileETag MTime Size # Remove the ETag (entity tag) response header field # This is most likely the optimum choice to use. Header unset ETag FileETag None <IfModule mod_mime.c> AddType application/javascript js AddType audio/mp4 f4a f4b m4a AddType audio/ogg oga ogg opus AddType image/bmp bmp AddType image/svg+xml svg svgz AddType image/webp webp AddType video/mp4 f4v f4p m4v mp4 AddType video/ogg ogv AddType video/webm webm AddType video/x-flv flv AddType image/x-icon cur ico AddType application/font-woff woff AddType application/font-woff2 woff2 AddType application/vnd.ms-fontobject eot AddType application/x-font-ttf ttc ttf AddType font/opentype otf </IfModule> <IfModule mod_expires.c> ExpiresActive on # ExpiresByType overrides the ExpiresDefault... # cache expiration time of 2 days|A172800. ExpiresDefault A172800 ExpiresByType text/css A2419200 ExpiresByType text/html A2419200 ExpiresByType text/javascript A2419200 ExpiresByType text/x-javascript A2419200 ExpiresByType application/x-javascript A2419200 ExpiresByType application/javascript A2419200 ExpiresByType application/x-font-ttf A2419200 ExpiresByType application/x-font-woff A2419200 ExpiresByType font/opentype A4838400 ExpiresByType application/x-shockwave-flash A2419200 ExpiresByType image/vnd.microsoft.icon A2419200 ExpiresByType image/jpg A2419200 ExpiresByType image/jpeg A2419200 ExpiresByType image/gif A2419200 ExpiresByType image/png A2419200 ExpiresByType image/bmp A2419200 ExpiresByType image/webp A2419200 ExpiresByType image/x-icon A2419200 ExpiresByType image/svg+xml A2419200 ExpiresByType video/mp4 A2419200 ExpiresByType video/ogg A2419200 ExpiresByType video/webm A2419200 ExpiresByType audio/ogg A2419200 ExpiresByType font/eot A2419200 ExpiresByType font/opentype A2419200 ExpiresByType font/woff A2419200 ExpiresByType application/font-woff2 A2419200 ExpiresByType application/x-font-woff A2419200 ExpiresByType application/x-font-ttf A2419200 ExpiresByType application/vnd.ms-fontobject A2419200 </IfModule> <IfModule mod_headers.c> <FilesMatch "\.(js|css|flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|gif|jpg|jpeg|png|swf|webm)$"> Header append Cache-Control "public" </FilesMatch> <FilesMatch "\.(txt|html)$"> Header append Cache-Control "proxy-revalidate" </FilesMatch> <FilesMatch "\.(php|cgi|pl|htm|xml)$"> Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" Header set Pragma "no-cache" </FilesMatch> </IfModule> <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css text/javascript AddOutputFilterByType DEFLATE application/javascript application/x-javascript AddOutputFilterByType DEFLATE application/x-httpd-php application/x-httpd-fastphp AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/xml-dtd AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml AddOutputFilterByType DEFLATE font/eot font/otf font/opentype application/font-otf application/x-font-otf AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf AddOutputFilterByType DEFLATE image/bmp image/svg+xml image/x-icon image/vnd.microsoft.icon # Drop problematic browsers BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary </IfModule> #SPEED END
—————————
INSIDE WP-CONTENT FOLDER
Create a new file named .htaccess and put this:COPY CODE# Protect htaccess <Files .htaccess> Order allow,deny Deny from all </files> <FilesMatch "\.(?i:php)$"> <IfModule !mod_authz_core.c> Order allow,deny Deny from all </IfModule> <IfModule mod_authz_core.c> Require all denied </IfModule> </FilesMatch> Order deny,allow Deny from all <Files ~ ".(xml|css|jpe?g|png|gif|js|mp3|mp4)$"> Allow from all </Files>
———————-
IN YOUR CHILD THEME FUNCTIONS.PHP// Enable Automatic Updates for WordPress Plugins
add_filter( ‘auto_update_plugin’, ‘__return_true’ );// Limit access to DashBoard only to Admin
add_action( ‘init’, ‘blockusers_init’ );
function blockusers_init() {
if ( is_admin() && !current_user_can( ‘administrator’ ) && !( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) ) {
wp_redirect( home_url() );
exit;
}
}// Change your username by a nickname
function set_default_display_name( $user_id ) {
$user = get_userdata( $user_id );
$name = sprintf( ‘%s %s’, $user->first_name, $user->last_name );
$nickname = sanitize_user( strtolower( str_replace( ‘ ‘, ”, $name ) ) );
$args = array(
‘ID’ => $user_id,
‘display_name’ => $name,
‘nickname’ => $nickname,
‘user_nicename’ => $nickname
);
wp_update_user( $args );
}
add_action( ‘user_register’, ‘set_default_display_name’ );// Force strong password
function strong_password() {
global $bp;if ( !empty( $_POST[‘signup_password’] ) )
if ( !valid_pass( $_POST[‘signup_password’] ) ){
$bp->signup->errors[‘signup_password’] = __( ‘Your password is not strong enough. Please, write a strong password using characters: A-Z, a-z, 0-9, @#$%&*-:;,.!’, ‘buddypress’ );
}
}
add_action( ‘bp_signup_validate’, ‘strong_password’);function valid_pass($candidate) {
$r1=’/[A-Z]/’; //Uppercase
$r2=’/[a-z]/’; //lowercase
$r3=’/[!@#$%^&*()-_=+{};:,<.>]/’; // whatever you mean by special char
$r4=’/[0-9]/’; //numbersif(preg_match_all($r1,$candidate, $o)<1) return FALSE;
if(preg_match_all($r2,$candidate, $o)<1) return FALSE;
if(preg_match_all($r3,$candidate, $o)<1) return FALSE;
if(preg_match_all($r4,$candidate, $o)<1) return FALSE;
if(strlen($candidate)<8) return FALSE;return TRUE;
}// Restricted Email Domains
add_option(‘limited_email_domains’, array(‘yahoo.com’, ‘outlook.com’, ‘hotmail.com’, ‘gmail.com’, ‘aol.com’, ‘mail.com’));// Decrease image compression in WordPress
add_filter( ‘wp_generate_attachment_metadata’, function( $metadata, $attachment_id )
{
$file = get_attached_file( $attachment_id );
$type = get_post_mime_type( $attachment_id );// Target jpeg images
if( in_array( $type, [ ‘image/jpg’, ‘image/jpeg’ ] ) )
{
// Check for a valid image editor
$editor = wp_get_image_editor( $file );
if( ! is_wp_error( $editor ) )
{
// Set the new image quality
$result = $editor->set_quality( 75 );// Re-save the original image file
if( ! is_wp_error( $result ) )
$editor->save( $file );
}
}
return $metadata;
}, 10, 2 );// Defer jQuery Parsing using the HTML5 defer property
if (!(is_admin() )) {
function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
if ( strpos( $url, ‘jquery.js’ ) ) return $url;
// return “$url’ defer “;
return “$url’ defer onload='”;
}
add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );
}// Remove WP Header Junk
// all actions related to emojis
remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );// Remove the REST API endpoint.
remove_action( ‘wp_head’, ‘rest_output_link_wp_head’);
remove_action( ‘wp_head’, ‘wp_oembed_add_discovery_links’ );
remove_action( ‘wp_head’, ‘wp_oembed_add_host_js’ );remove_action(‘wp_head’, ‘rsd_link’); // remove really simple discovery link
remove_action(‘wp_head’, ‘wp_generator’); // remove wordpress versionremove_action(‘wp_head’, ‘feed_links’, 2); // remove rss feed links (make sure you add them in yourself if youre using feedblitz or an rss service)
remove_action(‘wp_head’, ‘feed_links_extra’, 3); // removes all extra rss feed linksremove_action(‘wp_head’, ‘index_rel_link’); // remove link to index page
remove_action(‘wp_head’, ‘wlwmanifest_link’); // remove wlwmanifest.xml (needed to support windows live writer)remove_action(‘wp_head’, ‘start_post_rel_link’, 10, 0); // remove random post link
remove_action(‘wp_head’, ‘parent_post_rel_link’, 10, 0); // remove parent post link
remove_action(‘wp_head’, ‘adjacent_posts_rel_link’, 10, 0); // remove the next and previous post links
remove_action(‘wp_head’, ‘adjacent_posts_rel_link_wp_head’, 10, 0 ); // remove the next and previous post linksremove_action(‘wp_head’, ‘wp_shortlink_wp_head’, 10, 0 );
wp_deregister_script( ‘comment-reply’ ); // Remove comment-reply.min.js from footer
// Protect commentary box
add_filter(‘pre_comment_content’, ‘wp_specialchars’);// Enable shortcodes in text widgets
add_filter(‘widget_text’,’do_shortcode’);// BP redirect to profile
function redirect_to_profile( $redirect_to_calculated, $redirect_url_specified, $user ) {
if ( ! $user || is_wp_error( $user ) ) {
return $redirect_to_calculated;
}
//If the redirect is not specified, assume it to be dashboard
if ( empty( $redirect_to_calculated ) ) {
$redirect_to_calculated = admin_url();
}
// if the user is not site admin, redirect to his/her profile
if ( ! is_super_admin( $user->ID ) ) {
return bp_core_get_user_domain( $user->ID );
} else {
//if site admin or not logged in, do not do anything much
return $redirect_to_calculated;
}
}
add_filter( ‘login_redirect’, ‘redirect_to_profile’, 100, 3 );// Exclude admins from directories and BP widgets
add_filter( ‘bp_after_has_members_parse_args’, ‘buddydev_exclude_users’ );function buddydev_exclude_users( $args ) {
//do not exclude in admin
if( is_admin() && ! defined( ‘DOING_AJAX’ ) ) {
return $args;
}$excluded = isset( $args[‘exclude’] )? $args[‘exclude’] : array();
if( !is_array( $excluded ) ) {
$excluded = explode(‘,’, $excluded );
}$user_ids = array( 1 ); //user ids
$excluded = array_merge( $excluded, $user_ids );
$args[‘exclude’] = $excluded;
return $args;
}// Make xprofile fields translable fix
if (!function_exists(‘make_x_profile_fields_name_translable’)):function make_x_profile_fields_name_translable($fieldname) {
return __($fieldname, ‘kleo_framework’);
}add_filter(‘bp_get_the_profile_field_name’, ‘make_x_profile_fields_name_translable’);
endif;
// Remove Query Strings From Static Resources
if ( ! is_admin() ) {
function _remove_script_version( $src ){
$parts = explode( ‘?ver’, $src );
return $parts[0];
}
add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );
}// MINIFY YOUR HTML, JAVASCRIPT AND CSS
if ( ! is_admin() ) {
class WP_HTML_Compression
{
// Settings
protected $compress_css = true;
protected $compress_js = false;
protected $info_comment = true;
protected $remove_comments = true;// Variables
protected $html;public function __construct($html)
{
if (!empty($html))
{
$this->parseHTML($html);
}
}public function __toString()
{
return $this->html;
}protected function minifyHTML($html)
{
$pattern = ‘/<(?<script>script).*?<\/script\s*>|<(?<style>style).*?<\/style\s*>|<!(?<comment>–).*?–>|<(?<tag>[\/\w.:-]*)(?:”.*?”|\’.*?\’|[^\'”>]+)*>|(?<text>((<[^!\/\w.:-])?[^<]*)+)|/si’;
preg_match_all($pattern, $html, $matches, PREG_SET_ORDER);
$overriding = false;
$raw_tag = false;
// Variable reused for output
$html = ”;
foreach ( $matches as $token ) {$tag = (isset($token[‘tag’])) ? strtolower($token[‘tag’]) : null;
$content = $token[0];if ( is_null( $tag ) ) {
if ( !empty( $token[‘script’] ) ) {
$strip = $this->compress_js;
} else if ( !empty($token[‘style’] ) ) {
$strip = $this->compress_css;
} else if ( $content == ‘<!–wp-html-compression no compression–>’ ) {
$overriding = !$overriding;
// Don’t print the comment
continue;} else if ( $this->remove_comments ) {
if ( !$overriding && $raw_tag != ‘textarea’ ) {
// Remove any HTML comments, except MSIE conditional comments
$content = preg_replace(‘/<!–(?!\s*(?:\[if [^\]]+]|<!|>))(?:(?!–>).)*–>/s’, ”, $content);
}
}} else {
if ( $tag == ‘pre’ || $tag == ‘textarea’ || $tag == ‘script’ ) {
$raw_tag = $tag;
} else if ( $tag == ‘/pre’ || $tag == ‘/textarea’ || $tag == ‘/script’ ) {
$raw_tag = false;
} else {
if ($raw_tag || $overriding) {
$strip = false;
} else {
$strip = true;
// Remove any empty attributes, except:
// action, alt, content, src
$content = preg_replace(‘/(\s+)(\w++(?<!\baction|\balt|\bcontent|\bsrc)=””)/’, ‘$1’, $content);// Remove any space before the end of self-closing XHTML tags
// JavaScript excluded
$content = str_replace(‘ />’, ‘/>’, $content);
}}
}
if ( $strip ) {
$content = $this->removeWhiteSpace($content);
}$html .= $content;
}return $html;
}public function parseHTML($html)
{
$this->html = $this->minifyHTML($html);
}protected function removeWhiteSpace($str)
{
$str = str_replace( “\t”, ‘ ‘, $str );
$str = str_replace( “\n”, ”, $str );
$str = str_replace( “\r”, ”, $str );while ( stristr($str, ‘ ‘ ) ) {
$str = str_replace(‘ ‘, ‘ ‘, $str);
}return $str;
}
}function wp_html_compression_finish($html) {
return new WP_HTML_Compression($html);
}function wp_html_compression_start() {
ob_start( ‘wp_html_compression_finish’ );
}// add_action( ‘get_header’, ‘wp_html_compression_start’ );
add_action( ‘wp_loaded’, ‘wp_html_compression_start’ ); // for working with SEO by Yoast
}RoaderParticipantHi Radu!
Im not using Wannguard.
I dont know what is the problem with this fonts.
For the next update, includes: FontAwesome 4.7.0 by Default, because the Theme are using 3.2.1.
———
Out of Topic.
If you want, includes too:
– New Function: Buddypress who clicked at my profile. (Because the plugin does not work very well with SD theme).
– Ajax Search more criteria => Members, Groups, Forums (if exists), whatever. The plugin Bp Global Search does not work with your Theme.
– Copyright Widget Area by Default.RoaderParticipantHi Radu.
Solution for the Fonts: In Theme Options: Select: Arial, Arial…
Um I removed this code ===> from my style.css but the problem continues. And yes, in Default Theme this problem does not exists. So, Let me check…
COPY CODE.buddypress div.message-search #messages_search { margin-right: -90px; margin-left: 20px; display: inline-block; position: relative; right: 150px; top: 44px; }
RoaderParticipantHi There. How Are You?
People. How can I remove or disable Google Fonts from the Theme (using functions.php or whatever)?
Im not using google fonts. Im using Arial, Helvetica.
———–
OTHER:
Look at this picture. That problem with the Search. Some parts of the Theme, by default, has problems with the CSS.Attachments:
You must be logged in to view attached files.RoaderParticipantHola Laura.
Puse esto para mostrar los testimonios en el HomePage pero no aparecen.
[kleo_posts_carousel cat="all" limit="6" post_types="testimonials"]
Otro problema es con la Pestaña ShortCode, cuando hago clic para seleccionar alguno se puesta una ventana en blanco y no carga los codes.
RoaderParticipantFile Attachments with Contact Form 7: Solution:
First check your CF code, for me for example:
COPY CODE<label> Your Name (required) [text* your-name] </label> <label> Your Email (required) [email* your-email] </label> <label> Subject [text your-subject] </label> <label> Your Message [textarea your-message] </label> [file file-100 limit:1048576 filetypes:jpg|jpeg] [submit "Send"]
(Recommendation: Use Google reCaptcha with CF7)
Now, go to Mail tab, and add (for example) [file-100] in File Attachments text area and Save.
After that:
Go to /uploads/wpcf7_uploads (in your Hosting: public_html)
Open the .htaccess file and put (and Save):order deny,allow
deny from all
allow from 127.0.0.1Mail go to Spam folder: Solution: Use MailBank Plugin.
RoaderParticipantFor now… the problem with the Code for Remove jquery strings is resolved.
But, there are other little problems… for example, fontawesome icons does not work, etc.
RoaderParticipantHi Radu.
The pic. When you put a Google Analytic code in Theme Option, this code is visible for all in Home Page, etc. How I can hide this?
The other: Remove query strings… does Not work in this SweetDate Update.
RoaderParticipantAnd for the Next Update, or if you know a css for this: HIDE Google Analytics from Footer…
Attachments:
You must be logged in to view attached files.RoaderParticipantLike you can see: I re-installed WordPress and the Theme. All Clean and this problem continue. So, the Theme Update has something that are causing this.
Attachments:
You must be logged in to view attached files.RoaderParticipantHi Radu! How are you today?
Contact Form 7 Now Working but, File Attached No.I used this plugin and does Not work.
RoaderParticipantOther problem is with Contact Form 7. Does not send any message. Do you know the cause?
RoaderParticipantLo que sería bueno es que añadan soporte de idioma para el WpGlobus, ya que el QTranslate X lleva casi 11 meses sin actualización. Funciona sí, pero… tener un plugin desactualizado en un WP actualizado puede causar problemas.
RoaderParticipantHi Radu!
Before Update the Theme, these codes worked very well but not now…
I disabled all plugins (except buddy and rtmedia), and I deleted all codes in functions.php, only I let Remove query… And the problem continue!
Attachments:
You must be logged in to view attached files.RoaderParticipantGracias Laura. La solución completa es:
Crear el profile field, I am a: Shemale.
Poner este código en la Home Page:
[kleo_status_icon type="custom" field="I am a" value="Shemale" online="no" subtitle="Shemale in total" image="http://yoursite.com/wp-content/themes/sweetdate-child/images/status_05.png"]
Y usar este css:
COPY CODEdiv.status.three.columns.mobile-one {width: 20%; !important} @media only screen and (max-width: 767px) { div.status.three.columns.mobile-one { width: 20% !important; float: left; padding: 0 16px; } }
Attachments:
You must be logged in to view attached files.RoaderParticipantHi Radu. Does not work.
COPY CODE// Remove query string from static files if( ! is_buddypress() ) { add_filter( 'style_loader_src', 'sdt_remove_ver_css_js', 9999 ); // Remove WP Version From Scripts add_filter( 'script_loader_src', 'sdt_remove_ver_css_js', 9999 ); } // Function to remove version numbers function sdt_remove_ver_css_js( $src ) { if ( strpos( $src, 'ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; }
_____________
Or:COPY CODEif( ! is_buddypress() ) { function _remove_script_version( $src ){ $parts = explode( '?ver', $src ); return $parts[0]; } add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); }
And, I need to use this part too:
if ( ! is_admin() ) { }
RoaderParticipantHola Laura. Cómo puedo añadir un tercer género y que se muestre en el Front. O sea, Men in Total, Woman in Total, Trans in Total ? Es decir que se contabilice. Supongo que para ello necesitaría un código functions php y editar el Home Page. Creo que había visto ese código en esta Página 7thQ pero ahora no lo encuentro.
RoaderParticipantProblem Solved Radu.
But for the next update… please, check the Google PageSpeed for Optimize SweetDate for Mobile, etc.
RoaderParticipantOkey, I found that links “seventh…” are in Import / Demo / Posts.
If I remove these posts, maybe problem solve.
For now is All.
Have a Good Week… and Don’t Forget updates…
Attachments:
You must be logged in to view attached files.RoaderParticipantI need to remove this redirect.
Css for Mobile needs updates. I saying this in General.
For example, Confirm passwd button and the other Imgs (Up #152017)
Attachments:
You must be logged in to view attached files.RoaderParticipantyou need to download those images and then upload them into your site and replace them wherever they are used in the site. Probably in some blog posts.
I have the images in my Uploads, but, I have a bad redirect (for my Speed) also to Seventhqueen… look at the picture.
Attachments:
You must be logged in to view attached files.RoaderParticipantHi Radu, I NEED to remove these links from the Source, or Html, or Theme.
Attachments:
You must be logged in to view attached files.RoaderParticipantNo tengo instalado el Rslider. Por ahora no lo necesito.
Pero veo que esas dos imagenes linkeadas a S7 me están consumiendo recursos de mi server.
RoaderParticipantLa solución como dije en el otro Topic, fue usar las fonts desde el mismo CDN del proveedor y enlazar el link @url desde el style.css. No sé por qué razón las fonts dejaron de funcionar desde sweetdate / assest / font
Pero tengo un problema, y es este redirect a seventhqueen. Quiero eliminar estos enlaces. Están incrustados en el source del html, o sea, están ahí activos sin necesidad y consumiendo recursos.
Attachments:
You must be logged in to view attached files.RoaderParticipantFontAwesome _ SOLUTION:
I did put this code in: child-theme / style.css
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
I don’t know why, but, from the sweetdate theme fonta can’t work.
RoaderParticipantHola, estoy usando HostGator. No CloudFlare.
Las fonts no se muestran, alguna solución?
RoaderParticipantHola Laura.
Las fuentes del Theme, fontawesome, No se visualizan, se muestran como un rectángulo.
He desactivado plugins, quitado el style.css, el .htaccess, el functions.php, para ver si funcionan y nada.
RoaderParticipantHow can I remove this Analytics code code from the footer?
I put the code in General Settings, and now I removed and I deleted cache, but it follow there.
And, again, FontAwesome icons not display.
I want to remove this redirect links of seventhqueen from the html… check the other image.
Attachments:
You must be logged in to view attached files.RoaderParticipantHow can I remove theses external links? And, remember to Update Fontawesome, now is 4.7.0, sweetdate are using the old version. And, How can I use this fonts in stylesheet (child)?
I used ==> But this is repetitive. Because the fonts are in sweetdate/ assets. But now, this fonts are not working.
COPY CODE// Enqueues our locally supplied font awesome stylesheet function enqueue_our_required_stylesheets(){ wp_enqueue_style('font-awesome', get_stylesheet_directory_uri() . '/css/font-awesome.css'); } add_action('wp_enqueue_scripts','enqueue_our_required_stylesheets');
Attachments:
You must be logged in to view attached files.RoaderParticipantAnd… style.css / child theme
practically, not works. Only works if you put a code in Quick CssRoaderParticipantFont Awesome Not Working.
Attachments:
You must be logged in to view attached files.RoaderParticipantOther Measure:
COPY CODE// BuddyPress Honeypot. Stop Spammers Registration. function add_honeypot() { echo ''; } add_action('bp_after_signup_profile_fields','add_honeypot'); function check_honeypot() { if (!empty($_POST['system55'])) { global $bp; wp_redirect(home_url()); exit; } } add_filter('bp_core_validate_user_signup','check_honeypot');
RoaderParticipantSo, the problem for me here is that Reply and Comment has the same Class, and I can’t customize.
Check out the other style issues that the Demo / Theme has in general.
-
AuthorPosts