Sajid Manzoor
Forum Replies Created
-
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Plugin causes issues with WordPress 4.5Hello Author
I have deleted following lines from file admin-style.css and issue is resolved.
td {height:40px;} td.note {height:5px;} td.cgnote {height:1px;}
Deleted lines no 11- line no 13 in admin-style.css file
i am surprised and confused with this. that why image picker was not opening as above css lines have nothing to do with Media picker box..Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Plugin causes issues with WordPress 4.5Hello Author
I have figured out that this issue is due to admin-style.css file.
I have emptied admin-style.css file and then each and every thing works fine. else it shows a blank page.plz cnfrm which line in css file needs to be changed.
Thank you
sajidForum: Plugins
In reply to: [WooCommerce] WooCommerce, Add Product to Cart with different price each timeHello @mike
Thank you for suggesting plugin. I will check and let you know.
But i would like to do this using code.
Just plz tell me how can i get right post id when clicked on add to cart buttomForum: Plugins
In reply to: [WooCommerce] WooCommerce, Add Product to Cart with different price each time@mike,
Friend My scenario has changed. Now i need to calculate Product price on run time using Post_id
I have custom posts. with add to cart to button.
Let say
1- Custom Post 1 (id=32, price=30)
2- Custom Post 2 (id=33, price=36)
3- Custom Post 3 (id=34, price=50)and so on.
I have added a custom meta field for Price in custom post.
I have changed my code as followsadd_action( 'woocommerce_before_calculate_totals', 'add_custom_price' ); function add_custom_price( $cart_object ) { global $post; $post_id=$post->ID(); // To get post id // Code to get custom field here. $custom_price = 10; // This will be your custome price foreach ( $cart_object->cart_contents as $key => $value ) { $value['data']->price = $custom_price; } }
But now in return $post_id=$post->ID(); return ID of cart page.
Please tell me how can i get post_id of post from where the Add to cart event has firedForum: Plugins
In reply to: [WooCommerce] WooCommerce, Add Product to Cart with different price each time@mike Jolley Thank you for your reply
I know how can i get user_id
but i dont know how to use user_id or post_id in action functionForum: Themes and Templates
In reply to: [RubberSoul] How to justify the excerpt in front pageuse css
text-align:justify;
Forum: Plugins
In reply to: [qTranslate X] Language switcher menu to have language names in EnglishHello Pavan789
I don’t know how to build Menu in English Langugage only Using plugin feature.
How ever you can create a custom menu your self.
See example below.<ul> <?php $curLang = substr(get_bloginfo( 'language' ), 0, 2); switch ($curLang) { ?> <li class="<?php case "en": echo "active"; ?>" > <a href="en">English </a> <li class="<?php case "vt": echo "active"; ?>"> <a href="en">Vietnamese</a> <li class="<?php case "du": echo "active"; ?>"> <a href="en">Dutch</a> <li class="<?php case "ar": echo "active"; ?>"> <a href="en">Arabic</a> <?php } ?></ul>
Forum: Themes and Templates
In reply to: [Customizr] Favicon not showing…You are using PNG Images for favicon
Use .ico files for icon images.or use following code to use PNG Images
<link rel="icon" type="image/gif" href="favicon.gif" /> <link rel="icon" type="image/png" href="favicon.png" />
Forum: Themes and Templates
In reply to: I would like to have all pages on the static homepageHello
You can use following code snippet
<?php $posts= query_posts('post_type=page&post_id=325&posts_per_page=1'); //print_r($posts); if ( have_posts() ): ?> <?php while( have_posts() ): the_post(); get_template_part( 'template-parts/content', get_post_format() ); endwhile; ?> <?php endif; wp_reset_query(); ?>
Forum: Themes and Templates
In reply to: [Theme Rookie] Site down, changes in customizer.phphello
if customizer.php is part of your theme then you can find it in following locationpulic_html/wp-content/themes/your_theme_name/
Forum: Themes and Templates
In reply to: [Customizr] Favicon not showing…hello
please share your website URL.Hello
Got WP-ADMIN
After Login navigate to Appearance-> Editor
Look for file Header.php and footer.php at right hand side1st open Header.php and then find </head>in that file
The add your code before </head> that is<script type="text/javascript"> //<![CDATA[ var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "https://www.trustlogo.com/"); document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E")); //]]> </script>
Now open footer.php and find </body>
and then add<script language="JavaScript" type="text/javascript"> TrustLogo("https://primoprix.com/wp-content/uploads/2016/02/comodo_secure_100x85_transp.png", "CL1", "none"); </script>
before </body>
thats it,
Forum: Themes and Templates
In reply to: [JustWrite] Resizing and size of phtoso-2Hello Labrador
Please share your issue in details.
Your post will be deleted once again, if you won’t describe your issue.Thanks
Forum: Themes and Templates
In reply to: [Bushwick] Bushwick keeps 3D effects from working in Chromeplease share your website URL.
Forum: Themes and Templates
In reply to: [Ascent] Making phone number in header clickableUse following code in
<a href="tel:+18184536058">+1 818 453 6058 </a>
You will need to replace your number in code.