tcempk
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hueman] Slider and main menu issueThank you. I will do that!
Forum: Plugins
In reply to: [Polylang] No pagesSolved this. Missed the assign language to posts without one option.
Forum: Themes and Templates
In reply to: [Edge] How do I remove the text from the slider?hope this helps
.slider-title {display:none}
Forum: Themes and Templates
In reply to: [Oria] Change header image based on subpage.page-id-123 .site-header {background-image: url ();}
Replace the 123 with the ID of the page.
Forum: Themes and Templates
In reply to: Child theme functions.phpAs it often happens, I found the answer soon after asking the question. Here it is bellow.
function oria_js() { wp_enqueue_script( 'oria_js', get_stylesheet_directory_uri() . '/js/scripts.js', array( 'jquery' ), '1.0', true ); } add_action('wp_enqueue_scripts', 'oria_js');Forum: Themes and Templates
In reply to: [Oria] Header Image opacity changesorr<, I didn’t paste it all
`.site-header::after {
background-color: rgba(0, 0, 0, 0.5);
}Forum: Themes and Templates
In reply to: [Oria] Header Image opacity changeIf I understand the question correctly this should do it. Just change the 0.5 to your liking.
background-color: rgba(0, 0, 0, 0.5);
Forum: Everything else WordPress
In reply to: searchable custom databaseMy coding skills are rudimentary at best.
Forum: Networking WordPress
In reply to: Multisite count postsUse @swayam.tejwani solution.
Forum: Themes and Templates
In reply to: [Oria] 4 columns instead of threeAnswer:
.posts-layout .hentry { width: 25%; }Forum: Networking WordPress
In reply to: Multisite count postsYour way is much easier! Thank you!
Forum: Networking WordPress
In reply to: Multisite count postsThanks I’ve figured it out another way just now.
<?php global $wpdb; $post_count = $wpdb->get_var( "SELECT COUNT(*) FROM wp_2_posts WHERE post_status = 'publish' AND post_type = 'post' " ); $post_count1 = $wpdb->get_var( "SELECT COUNT(*) FROM wp_3_posts WHERE post_status = 'publish' AND post_type = 'post' " ); $post_count2 = $wpdb->get_var( "SELECT COUNT(*) FROM wp_4_posts WHERE post_status = 'publish' AND post_type = 'post' " ); $sum = $post_count + $post_count1 + $post_count2; echo "<p>All posts: {$sum}</p>"; ?>and
<?php global $wpdb; $count_terms = $wpdb->get_var ("SELECT COUNT(*) FROM wp_2_term_taxonomy, wp_2_posts, wp_2_term_relationships WHERE wp_2_posts.ID = wp_2_term_relationships.object_id AND wp_2_term_relationships.term_taxonomy_id = wp_2_term_taxonomy.term_taxonomy_id AND wp_2_term_taxonomy.term_id = '22' AND wp_2_posts.post_type = 'post' AND wp_2_posts.post_status = 'publish' "); $count_terms1 = $wpdb->get_var ("SELECT COUNT(*) FROM wp_3_term_taxonomy, wp_3_posts, wp_3_term_relationships WHERE wp_3_posts.ID = wp_3_term_relationships.object_id AND wp_3_term_relationships.term_taxonomy_id = wp_3_term_taxonomy.term_taxonomy_id AND wp_3_term_taxonomy.term_id = '16' AND wp_3_posts.post_type = 'post' AND wp_3_posts.post_status = 'publish' "); $count_terms2 = $wpdb->get_var ("SELECT COUNT(*) FROM wp_4_term_taxonomy, wp_4_posts, wp_4_term_relationships WHERE wp_4_posts.ID = wp_4_term_relationships.object_id AND wp_4_term_relationships.term_taxonomy_id = wp_4_term_taxonomy.term_taxonomy_id AND wp_4_term_taxonomy.term_id = '13' AND wp_4_posts.post_type = 'post' AND wp_4_posts.post_status = 'publish' "); $sum = $count_terms + $count_terms1 + $count_terms2; echo "<p>Posts cat A: {$sum}</p>"; ?>Your aswer seems easier in the long term, so I’ll give it a go if my soultion proves to be too much work to update.
Forum: Themes and Templates
In reply to: [Oria] slider in headerI’ve decided to turn off the parallax option for the header and have a static pic of 1920×300 in the header. Tips?
Forum: Plugins
In reply to: [Join My Multisite] Login and register formsEither I’ve somehow broken the plugin or we’re not thinking the same. When I add [join-this-site] shortcode I only get the sign up button, but no login form.
Forum: Plugins
In reply to: [Join My Multisite] Login and register formsThe [join-my-multisite] gives you only the registration to website form. I’d like to have the login form on the same page as it is in the widget.
For better understanding I want it just like it is in the pic. Just instead of it being in the widget I want in on a page. And if I can get a registration form on the same page (instead of the make your profile button (translated in my example to “ustvari si profil”)) that would be even better.