mogeh
Forum Replies Created
-
Forum: Plugins
In reply to: [WC Fields Factory] How to display admin fields in product tabsThanks so much for the fast response which was very helpful.
The tabs content now displays as expected.
But the tabs title doesn’t display anything though i added a title text in the tab title option of the admin field group.
I also noticed that if i choose that the admin fields should display in the products tabs, the content of the fields are displayed in two locations: above the products image and in the tabs content.
I have tested on the default twenty twenty-two theme and it’s the same there too.Maybe i’m missing something.
Thanks so much in advance.
- This reply was modified 2 years, 4 months ago by mogeh.
Thanks. it worked.
Thanks for the reply
1=> i tried using:
$type = get_post_meta($this->id, 'ad_type', true);
but it was returning errors(Fatal error: Uncaught Error: Using
$this when not in object context in C:\wamp\www\propertyforest.com\wp-content\themes\prop-forest-child\classified-listing\content-listing.php on line 11
and
I then modified it to:
$type = get_post_meta($listing->ID, 'ad_type', true);
and tried displaying it using:<?php echo esc_attr( $type );?>
But it was returning no results.
Kindly, help.
Thanks
Thanks. Your help is very appreciated as the problem has been solved.
Forum: Plugins
In reply to: [Thumbs Rating] Show button without number of votesThanks @quicoto for your time so far.
If i used
.thumbs-rating-up { display: none; }
, it hides the button but
what i want to achieve is to hide the text before the votes counts; that was why i was requesting for the wrapping of the text in a span so that it can be easily hidden with CSS.I will look for a permanent solution to it with time.
Thanks and my best regards.
Forum: Plugins
In reply to: [Thumbs Rating] Show button without number of votesHello @quicoto ,
Thanks for your prompt response always and
blessing us with this great plugin.back then when the vote up and vote down button were wrapped with a span tag as
seen below:
<span class="thumbs-rating-up thumbs-rating-voted" onclick="thumbs_rating_vote(78, 1);" data-text="Vote Up +">2</span>
it was easy to hide. But after updating recently, i found out that the HTML structure has changed and i have been struggling with hiding the text again.I wish to make some request:
1. Can you kindly wrap the buttons text in a span tag so that it can be easily hidden with CSS, like below:
<button class="thumbs-rating-up thumbs-rating-voted" onclick="thumbs_rating_vote(389, 1);"><span>Vote Up +</span>1</button>
And release an update.I can easily modify the plugin files directly and bump up the version number as suggested; But what if a critical update is released for the plugin? It means i will miss it and other relevant subsequent updates.
2. kindly provide help with overriding the “thumbs_rating_getlink” function.
Though not good with PHP, i did some research and learnt that
if ( ! function_exists( 'thumbs_rating_getlink' ) ): function thumbs_rating_getlink($post_ID = '', $type_of_vote = '', $wrapper = true) { } endif;
is a pluggable and that i could override it by doing the following:
function thumbs_rating_getlink($post_ID = '', $type_of_vote = '', $wrapper = true) { }
I have tried it and other ways of overriding a function but i keep getting errors.
The fault could be from my side because of my deficiency in PHP, i will highly appreciate your help.
Thanks @quicoto in advance.
Forum: Plugins
In reply to: [Thumbs Rating] Show button without number of votesHello @squasher ,
Can you kindly assist with your solution?
I’m try to achieve the same results but I’m finding it
very difficult overriding the “thumbs_rating_getlink” function
from my child’s theme function.phpAny other help plus that of @squasher in solving this problem is highly appreciated
Thanks in advance
Forum: Plugins
In reply to: [Essential Real Estate] How to override plugin in child themeThanks so much!
Great plugin and i really appreciate.
Thank you so much!!!
Your plugin is top-notch and you have been very helpful.
I was able to override the default class by using the wrapper_class parameter in the shortcode.
A suggestion:
I think it would have been more convenient for non code-oriented users if the wrapper_class and wrapper=”div” parameter can also be over-written from the custom template created. It makes it straight forward for any of the templates created to be easily called and used in the theme without the user having to insert the required classes and wrapper parameters using short-codes.
Thanks so much and wish you look into implementing my suggestion.
Great plugin!!!!
Thanks. the partials folder now works.
Please, how do i add an additional CSS class to the parent element
of the listed items as seen in the example below?e.g
div class=”display-posts-listing i want an additional class here or remove the existing class for certain templates“>
<div class=”post-summary col-md-4″></div>
<div class=”post-summary col-md-4″></div>
<div class=”post-summary col-md-4″></div>
<div class=”post-summary col-md-4”></div></div>
Thanks for your reply.
Am currently working on localhost.
I had to search my plugin archives and found an old version i downloaded sometime ago.
I deleted version 2.6.4 and installed the old version (2.5.0) and everything seems fine for now pending when a permanent solution is found for the bug.But the website should be up by tomorrow, I may still run the update by then and let you see it.
Thanks
Forum: Plugins
In reply to: [Recent Posts Widget Extended] HTML span in titles getting ignoredThis enables you to have the title wrapped in the H3 tag and also linked.
Original code in funtions.php
// $html .= ‘<h3 class=”rpwe-title”>‘ . esc_attr( get_the_title() ) . ‘</h3>’;Edited code
$html .= ‘<h3 class=”rpwe-title”>‘ . get_the_title() . ‘</h3>’;I only removed the esc_attr before get_the_title