Clarion Technologies
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Child Themes and pluginsHello webdev00,
As per catacaustic said Child themes overwrite themes. They don’t overwrite plugins is right but you are asking about the Woo-commerce
so Woo-commerce allow us to overwrite their templates in our theme please follow the below link this will help you.https://docs.woothemes.com/document/template-structure/
Thanks
Forum: Fixing WordPress
In reply to: functions.php child file overwritingHello bk09,
The theme your using is the paid theme so you need to ask for support on theme support forum where you can get the help from theme support.
http://themeforest.net/item/udesign-responsive-wordpress-theme/253220/support
Thanks
Forum: Fixing WordPress
In reply to: Custom type and bespoke meta fieldsHello sittinggiant,
If you want to add same meta field to your custom post type you can use the below plugin to add custom fields and then assign it to your custom post type.IF you want same key for this field then add the same key while creating the custom field.
https://ww.wp.xz.cn/plugins/advanced-custom-fields/
Thanks
Forum: Fixing WordPress
In reply to: Media QueriesHello localgreeneats,
The media query that you have written is the best way to apply css on smaller screen but the selector you have added is “secondary.menu” and secondary is not an HTML tag so if the secondary is the class name you must write like this “secondary.menu” please changing this this will help you.
@media screen and ( min-width: 401px ) { .secondary.menu { width: 49%; margin-right: 2%; } }Thanks
Forum: Fixing WordPress
In reply to: WorkPress is Redirecting all my pagesHello sabertooth1959,
Can you please check the siteurl and home in wp_options table in database of site “http://extremebizadvertising.com/Likes/” may be this URLs are going to “http://extremebizadvertising.com/”.
Thanks
Forum: Fixing WordPress
In reply to: Text back ground colorHello mrboardfeet.
Please use the below line of in your theme style-sheet
body .header-content p {
background-color: #fff;
opacity:0.6;
}Thanks
Forum: Hacks
In reply to: wp_handle_uploadHello
Please try using the below code this will help you.
<?php if( 'POST' == $_SERVER['REQUEST_METHOD'] ) { if ( $_FILES ) { $files = $_FILES["my_file_upload"]; foreach ($files['name'] as $key => $value) { if ($files['name'][$key]) { $file = array( 'name' => $files['name'][$key], 'type' => $files['type'][$key], 'tmp_name' => $files['tmp_name'][$key], 'error' => $files['error'][$key], 'size' => $files['size'][$key] ); $_FILES = array ("my_file_upload" => $file); foreach ($_FILES as $file => $array) { $newupload = my_handle_attachment($file,$pid); } } } } } ?>in function.php function my_handle_attachment($file_handler,$post_id,$set_thu=false) { // check to make sure its a successful upload if ($_FILES[$file_handler]['error'] !== UPLOAD_ERR_OK) __return_false(); require_once(ABSPATH . "wp-admin" . '/includes/image.php'); require_once(ABSPATH . "wp-admin" . '/includes/file.php'); require_once(ABSPATH . "wp-admin" . '/includes/media.php'); $attach_id = media_handle_upload( $file_handler, $post_id ); if ( is_numeric( $attach_id ) ) { update_post_meta( $post_id, '_my_file_upload', $attach_id ); } }Thanks
Forum: Fixing WordPress
In reply to: How do you extend the time of a text WidgetHello zaindin,
I have checked your site and found that you have used the carousel So to change slide transition speed you need add the below script in your header.
// interval is in milliseconds. 1000 = 1 second - so 1000 * 10 = 10 seconds $('.carousel').carousel({ interval: 1000 * 10 });Thanks
Forum: Fixing WordPress
In reply to: Modify conditional titles to include parent and page numberHello gulliver,
If you want to modify the default title of post then please use the wp_title filter below link will guide you through the same:
https://developer.ww.wp.xz.cn/reference/hooks/wp_title/
Thanks
Forum: Fixing WordPress
In reply to: My CSS not showing up on custom themeHello robertcc18,
Please replace your code with below code:
<?php get_header(); ?> <div id="main-container"> <section id="content-container"> <?php // Start of the loop if ( have_posts() ) : while ( have_posts() ) : the_post(); // Get post Template get_template_part ( 'content', get_post_format() ); // show the date once a day the_date( '', '<h3 class="the_date">', '</h3>' ); ?> <article id="post-<?php the_ID(); ?>" <?php post_class();?>> <header> <h2 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"> <?php the_title();?> </a> </h2> <p class="entry-meta"> Posted on < time datetime="<?php echo get_the_date(); ?>"><?php the_time(); ?></time> By <?php the_author_link(); ?> <?php //are the comments open? if ( comments_open() ) : ?> • <?php comments_popup_link( 'No Comments', '1 Comments', '% Comments' ); endif; ?> </header> <?php // the content the_content(); ?> <?php // Load comments if singular if ( is_singular() ) { comments_template( '', true ); } // Loop Ends endwhile; // Nothing in the Loop? else : ?> <article id="post-0" class="post no-results not-found"> <header> <h2 class="entry-title">Nothing Found</h2> </header> <p> We're sorry, but we couldn't find anything for you.</p> <?php get_search_form(); ?> </article> <?php endif; ?> </section> <!--- #main-container ends --> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>Thanks
Forum: Fixing WordPress
In reply to: Global reload (or ajax) the page when a new post i publishedHello dborghez,
Please try using the WordPress post save filter this may help you in requirement:
The save_post action fires When a post is updated and/or published
<?php add_action( 'save_post', 'wp_auto_reload_page_save_post' ); function wp_auto_reload_page_save_post() { // do stuff }If you want your functions to fire only when a post is being edited, you can hook into edit_post.
Thanks
Forum: Fixing WordPress
In reply to: Add carousel to categories pageHello sachina96,
If you want to add carousel in you category page you need to add your WP carousel short-code in category.php template in your theme where you will get the current category ID which you need to pass into Short-code if the WP carousel allowing to pass the category parameter in short-code.
Thanks
Forum: Fixing WordPress
In reply to: Get Categories wif another Categories TermHello zero85,
You need to implement the query for getting post with multiple taxonomy terms.For using this please follow the below link:
https://tommcfarlin.com/get-posts-with-multiple-taxonomies/
Thanks
Forum: Fixing WordPress
In reply to: Texts & link disappear each time cursor is hovered over them.Your Welcome.. 🙂
Forum: Localhost Installs
In reply to: local site /wp-adminHello imthatguydavid,
For protecting the WP-admin URL you may used “Protect Your Admin” or any other plugin.Some time after migration changes in admin url plugin not works due to settings are not get saved. So in order work you login on your local-host just remove such plugin for some time from plugin folder and login using wp-admin and then again upload the plugin in plugin folder and and make changes in plugin settings in wp-admin.
Thanks