+1 to this request.
two features should be added to tagdiv builder to add to single post template
1- WordPress excerpt ( same as title , subtitle)
2- Table of contents ( simple and fully integrated)
hope you take in consideration
Thank you
i would add also for others , if you don’t want to show excerpt that is taken from content automatically first , but rather the excerpt that you enter manually then using following following function might help :
function get_excerpt_by_id($post_id){
global $post;
$save_post = $post;
$post = get_post($post_id);
$output = get_the_excerpt();
$post = $save_post;
return $output;
}
Well , thousand words can tell you how much i appreciate your help
i am sure this will help other too
Thank you again Catalin
big thumb up
Hello
i manged to do this in local posts templates, but it is hard to do in cloud templates
did you by any chance tried
would you share the solution if you have
i tried every thing in :td-cloud-library/td-cloud-library/shortcodes/single/tdb_single_subtitle.php
tried to make changes to :
function render($atts, $content = null) {
parent::render($atts); // sets the live atts, $this->atts, $this->block_uid, $this->td_query (it runs the query)
global $tdb_state_single;
$post_subtitle_data = $tdb_state_single->post_subtitle->__invoke();
$additional_classes = array();
$buffy = ''; //output buffer
// when no data - return empty on frontend
if ( empty($post_subtitle_data['post_subtitle'])) {
return $buffy;
}
$buffy .= '<div class="' . $this->get_block_classes($additional_classes) . '" ' . $this->get_block_html_atts() . '>';
//get the block css
$buffy .= $this->get_block_css();
//get the js for this block
$buffy .= $this->get_block_js();
$buffy .= '<div class="tdb-block-inner td-fix-index">';
$buffy .= '<p>' . $post_subtitle_data['post_subtitle'] . '</p>';
$buffy .= '</div>';
$buffy .= '</div>';
return $buffy;
}
but no success
Oh jee.! any safe places around?
No one insulted no one, Don’t twist words. bad behavior.
You went on and over for nada.
Don’t threat with help, as you alone don’t own it .
You even did not understand the proverb about Peanuts and Monkeys. so lets leave it there.
i am tagdiv customer for more than 5 years and i have bought many of there theme and even share solutions for problems.(multiple users)
No thing against Tagdiv. i am a loyal client. they can hold criticism ,
i can point out multiple things that presented here in the forum over and over, people ask and given template answer. Companies listen to their clients. There is some thing called clients preservation.
As a client , template answers are not a good sign.
Read the other clients question all over the site and felt their frustration. as i know they are also trying hard to succeed with as much they have. Not all professionals as you mentioned above.
Some people are humble … you know!!!
Whether you like or not, this is not an insult, this is criticism. don’t like its OK . free country… Tagdiv might insist in their answers and i have the right to ask for better answers as i see it.
When the going gets tough, the tough get going.
People don’t want to add tons of plugins since it slow down the site.
People chose the theme because it was optimized and have a ajax login form.
People did test the theme and bought it because of great support at beginning and promises to add features to the to-do-list .
People are asking for help or recommendation are clients and clients are the core of each company.
People don’t ask for any thing for free , so they are offering to pay for any customization (or your 500$ coding as you putted it).
Don’t rush rush ,hold your horses. tagdiv company grew from the 50$ your underestimating. 50 and 50 and 50 makes a ton. its not like only one person is asking for this features. There are many clients here that asked the same questions and got the same answer. saying there is a way to address issues other than using a template answer.
i just want to know if you are from tagdiv offical support team.
Pay Peanuts Get Monkeys you say . ha!
before i answer you
you are who exactly ?
I think this is bad support. The Support answer is very customer unfriendly. I bought many of your theme and these answers shock me.
You should consider at least saying that you guys will add it to the will-do list.
This REGISTER/LOGIN feature is very important to many users and clients and i think there should be another way to answer. don’t forget that people pay for support too . and support make clent loyal clients and buy more.
why you don’t consider at least adding ads-on for your theme
for example :
better login form or registration / subscribe form
people will buy it
many topics around here have the same answer template :
Give me a break
Hello
To every one searching for a way to add share buttons on pages here is how i did it with out plugin :
1 go to function.php in your theme root( better use child theme so you dont lose modifications when updating) :
2- add the following code :
/* ----------------------------------------------------------------------------*/
// Share buttons on pages' bottom
// PS: no-follow tag was added to external links
function tagdiv_social_buttons($content) {
global $post;
$permalink = get_permalink($post->ID);
$title = get_the_title();
//don't show buttons on frontpage and other pages id
if( !is_front_page() && !is_page(array( 1, 2,3,4,5,6 )) && $post->post_type=='page' ) {
$content = $content . '<div class="td-post-sharing td-post-sharing-top tagdiv-share">
<a class="td-social-sharing-buttons td-social-facebook" rel="nofollow"
href="https://www.facebook.com/sharer.php?u=' . urlencode( esc_url( get_permalink() ) ) . '"
onclick="window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;">
<i class="td-icon-facebook"></i><div class="td-social-but-text">share on facebook</div>
<a class="td-social-sharing-buttons td-social-twitter" rel="nofollow" href="http://twitter.com/share?text='.$title.'&url='.$permalink.'"
onclick="window.open(this.href, \'twitter-share\', \'width=550,height=235\');return false;">
<i class="td-icon-twitter"></i><div class="td-social-but-text">share on twitter</div>
<a class="td-social-sharing-buttons td-social-google tagdiv-google" rel="nofollow" href="https://plus.google.com/share?url=' . esc_url( get_permalink() ) . '"
onclick="window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;">
<i class="td-icon-googleplus"></i><div class="td-social-but-text tagdiv-google-border">share on google</div>
</div>';
}
return $content;
}
add_filter('the_content', 'tagdiv_social_buttons');
// use short code [tagdivsocial] to show buttons where ever you need
add_shortcode('tagdivsocial', 'tagdiv_social_buttons');
`
3 then add the following css to theme panel of your style.css file:
<code>
.tagdiv-share {
margin: 21px auto;
text-align: center;
font-family: 'Droid Arabic Kufi', arial, sans-serif !important;
}
.tagdiv-google{
width: 160px !important;
}
.tagdiv-google-border{
border-right: 1px solid rgba(255, 255, 255, 0.2);
}
</code>
and every thing is working fine
hope this help any one looking.
-
This reply was modified 8 years by
biznizat. Reason: FIXING
Hello
i used the visual composer to add to pages but that before i disabled it and using td composer instead.
but in td composer there is no option to add sharing to pages .
using plugin is not logic since we have the code already running for posts .
so may be a small tip from you guys to the direction that we should do in order to have a sharing on pages also would be helpful.
Thanks you
can you please share a hack or a tip how to add them for pages?
same issue
hi Bogdan ,
thank your answer,
I know how to do that , but I want the smart search , the search with suggestion that is in the header (Live search with ajax and up down keys) to use in a widget , and not wordpress search
waiting for your answer
Hello ,
i have added this fix and its working for me , but my question will this effect google adsense …? meaning will this make teh adsense also open in modal or just pictures?
thanks
Hello , will this solution effect well this effect google adsense?
