Ankita Tanti
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Don’t change post modified when modified by an adminYes! It’s possible!
you can do that using ‘wp_insert_post_data’ filter as below (This filter is called by wp_insert_post function before inserting into or updating the database):
function filter_handler( $data , $postarr ) { if( current_user_can('administrator') ) { $data['post_modified'] = $postarr['post_modified']; $data['post_modified_gmt'] = $postarr['post_modified_gmt']; } return $data; } add_filter( 'wp_insert_post_data', 'filter_handler', '99', 2 );Forum: Developing with WordPress
In reply to: Creating a dropdown question and answer formYou can use FAQ plugin which support categories. you can Add Rim and Hub as category from admin panel and then create you own template which list those categories in drop down. On selection of category you can put ajax and echo FAQ plugin short-code results based on chosen category!
Hope this will help!
Forum: Developing with WordPress
In reply to: Using wpdb to connect to another databaseyou should not create different database for this. you can create new tables in your WordPress db. create your own tables with your preferred prefix and try accessing them using custom query using wpdb object.
Hope this will help you!
Forum: Developing with WordPress
In reply to: menu with a drop down slider/carouselThey have used owl-carousel to create gallery. you can put jQuery to hide and show them on hover of menu. basically custom code needs to added.
Thanks!
Ankita.Forum: Developing with WordPress
In reply to: Both Main and mobile menu showing up on desktop viewhttp://vectraenergygroup.com/wp-content/plugins/multi-step-form/dist/vendor-frontend.min.css?ver=1.0.6 css is adding below line
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}which makes mobile menu visible, just deactivate plugin for some time and try checking menu.
Hope this will help you!
Forum: Fixing WordPress
In reply to: Can’t Log into my admin of my website@mstein download latest version of plugin from https://wordpress.org/plugins/ewww-image-optimizer/ and upload it to /home1/mstein/public_html/wp-content/plugins/ folder using c-panel or FTP. Also, Before replacing, create back-up of your current ewww-image-optimizer folder.
Hope this will help!
Forum: Developing with WordPress
In reply to: Logo Image not DisplayingThere’s no issue with class. but issue is with the div tag, you have placed img tag without writing completing your div tag with
>.Please try below code,
function coh2017_the_custom_logo(){ /* * Echos custom HTML elements to support Bootstrap classes. If a change is needed to the branding of the theme, * this is where you'll want to do it. */ $logo_id = get_theme_mod( 'custom_logo' ); $logo = wp_get_attachment_image_src( $logo_id , 'full' ); if (has_custom_logo() ) { echo '<div class="col-xs-1"><img src="' . esc_url( $logo[0] ) . '" class="img-responsive"></div>'; echo '<div class="col-xs-11"><h1 id="site-title"><a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . esc_attr( get_bloginfo( 'name' ) ) . '</a></h1>'; echo '<h2 id="site-description">' . esc_attr( get_bloginfo( 'description' ) ) . '</h2></div>'; } else { echo '<div class="col-xs-1"><img src="' . IMAGES_DIRECTORY . 'logo.png" class="img-responsive"></div>'; echo '<div class="col-xs-11"><h1 id="site-title"><a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . esc_attr( get_bloginfo( 'name' ) ) . '</a></h1>'; echo '<h2 id="site-description">' . esc_attr( get_bloginfo( 'description' ) ) . '</h2></div>'; } }Hope This’ll solve your problem!
- This reply was modified 9 years, 3 months ago by Ankita Tanti.
Forum: Developing with WordPress
In reply to: Logo Image not Displaying@pdxchambers i saw you site. try searching for
<header id="site-header"tag in your theme, in that tag your logo is rendering like below on your site :<div class="col-xs-1" <img="" src="http://www.coh.pdxchambers.com/wp-content/themes/coh2017/images/logo.png"></div>It should be as below
<div class="col-xs-1"><img src="http://www.coh.pdxchambers.com/wp-content/themes/coh2017/images/logo.png" /></div>Hope This Will Help You!
- This reply was modified 9 years, 3 months ago by Ankita Tanti.
- This reply was modified 9 years, 3 months ago by Ankita Tanti.
Forum: Developing with WordPress
In reply to: Want to make a couple changes in my themeHi @baris0546,
Go to inc\functions\functions-header.php in your theme and search for tora_menu_bar() function. you’ll find mobile nav rendering there.
Hope this will help you.