Search Results for 'block'

Results from the Forum
Bogdan B.
tagDiv Staff

Hello,

The easier way to do it is with do_shortcode. THe news ticker is a rendered visual composer shortcode so using the function directly in the post template files is easier.
you cna set up your ticker the way you want it on a dummy page like so: http://screencast.com/t/iIKBu50mv and set all of it;s options.
The you can use the shortcode generated in classic mode and text mode: http://screencast.com/t/yLkdt8nsfK
Then you can place a do_shortcode function on each post template and add the shortcode inside: https://developer.wordpress.org/reference/functions/do_shortcode/
<?php echo do_shortcode('[td_block_trending_now style="style2" header_text_color="#dd3333" header_color="#1e73be" category_id="1048" sort="random_posts" limit="20" offset="2"]'); ?>

I hope this helps.
Thanks

Equapio
tagDiv Member

Thanks Bogdan! It seems to work altough i don’t see an ad yet…probably takes a bit.

What’s the code like if i need to display 2 ads? Lets say after the 2nd and 4th exerpt?

Do i need to repeat the if part?

if (is_tag() && ($adcounter == 2)) {
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘);
}

if (is_tag() && ($adcounter == 4)) {
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_2"]‘);
}

Appreciate one last tip here.

Thank you!

Bogdan B.
tagDiv Staff

Hi,
Sorry, i have not checked the shortcode itself. It’s the wrong shortcode (old) as this topic is kind of old and the solutions above are provided with the old custom ad shortcodes. Here is how the current shortcodes look like:
[td_block_ad_box spot_id="custom_ad_1"]
Sorry for the dumb mistake.

billspyropoulos
tagDiv Member

I came up with a good solution for now. Go to
wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php

and add the following code

class td_block_trending_now_widget extends td_block_widget {
var $td_block_id = 'td_block_trending_now'; // change only the block id, the rest is autogenerated
}

add_action('widgets_init', create_function('', 'return register_widget("td_block_trending_now_widget");'));

this will make a “news ticker” widget and then you can use it via php with the wordpress function


<?php the_widget( 'td_block_trending_now_widget' ); ?>

Althoug its working if you need to customize it (ex. number of post shown) you have to pass a second var on the function which is the array containing the attributes with their values. My next question is
what are these attributes. For example if i want 10 posts from category “World” what should i write?


args = array(
post => 1,
cat => 'World'
);
the_widget( 'td_block_trending_now_widget', $args );

Bogdan B.
tagDiv Staff

Hello,

Custom ad positions and conditions must be added in the php files directly as our theme has no such options.
you can use a do_shortcode function and a is_category function to check for the category itself.
Here is an example: http://screencast.com/t/maoyrOlqc

 <?php if (is_category( 'Gadgets' )){
            echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
        }; ?>

Thank you!

billspyropoulos
Participant
#0

Hello,
How can i use “block trending now” via php or a shortcode. I would like to appear this block on every article page of my website.

Thank you in advance.

Catalin
tagDiv Staff

Hello josoro,

I assume that you want to combine the modules on the category template, right? Unfortunately, please notice that our theme has not been designed to support that, sorry! As you can do is to use a single module for the entire category page…so if you like the Block 4, please notice that this type of Block uses the module 2. If you want to add more settings in our theme and if you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!

Thanks for your understanding!

Andrei L.
tagDiv Member

Hi

Yes it is possible but you will need some customizations in theme’s core files in order to achieve the desired result. All blocks are generated from one or more modules and you will need to edit the file corresponding with the modules used: http://screencast.com/t/Cm7Gpja44o You can check where each module is used in theme panel > block settings: http://screencast.com/t/SBKPS61X

Hope this helps.
Thanks!

Bogdan B.
tagDiv Staff

Hello,

Well it;s a simple image we added. If you keep the image size and name, you can edit in an any photo editor and replace the content with your own image. Lots of users do this. Here are the images for each thumb you will have to edit: http://screencast.com/t/1w6psOZ49o There are different sizes for this image used on dferent blocks and modules so you will have to add your image in all of these sizes. Keep the image size for it to display properly and keep the name of the file intact.

Thank you!

ZoLKoRn
Participant
#0

Hello guy,

I want to change most comment from is default count by wordpress comment to facebook comment count, right now I have already changed td-module-comments to show comment count from facebook comment then sort of most comment in widget it not working anymore.

So how I can change sort from wordpress comment ?

I have tried to overdrive count by fb_comments_count it not working

function fb_comments_count( $count )
{
// Override the comment count
if( function_exists( ‘fb_comments_count’ ) )
$count = fb_comments_count();

// We must then return the value:
return $count;
}
add_filter( ‘get_comments_number’, ‘fb_comments_count’);

and this is not working too

function fb_comment_count() {
global $post;
$url = get_permalink($post->ID);

$query = “SELECT comment_count FROM link_stat WHERE url = ‘{$url}'”;
$responseText = file_get_contents(‘https://graph.facebook.com/fql?q=&#8217;.$query);
$responseJson = json_decode($responseText);

$commenteCount = $responseJson->data->comment_count;
update_post_meta($post->ID, ‘facebook_comments_count, $commenteCount’);
// …
}

Best Regards,
ZoLKoRn

okgo87
Participant
#0

Hello,
I activated an ajax dropdown list in one of your blocks but I desire that its button (div class=”td-subcat-filter”) has to show the list only if it is clicked by the mouse (by default the button shows the dropdown list when it is being hovered)
How can I achieve that?
Thank you in advance.

Vanesafp
Participant
#0

Hello,
I need to modify the data shown in blocks . For example, in the block 16 I need to display the date . In block 7, the author of the post . It’s possible?

On the other hand , by the text of the center is not shown completely? http://eldeportedealbacete.es/wp-content/uploads/2016/08/Captura-de-pantalla-2016-08-23-a-las-19.06.07.png

Thank you very much.
It’s a great theme.

josoro
tagDiv Member

OK,

I´ll do it (I don´t know how but I´ll do!)

I have another related question, but I think is more simple.

I have to put in my category page (ARTICLE DISPLAY VIEW > M 16) just the first article showed like the Block 4 (but in the same row, not like with the Top Post Style option)

URL http://tvendord.com/hoy/category/comunidad/

Can you help me with that?

Thank you!

Freeman
tagDiv Member

Смотрю, ваш сайт совсем молодой. Мой совет – откажитесь от вывода категорий в ссылках.

А если вдруг у вас структура сайта изменится? Названия категорий поменяются?

Спасибо что беспокоитесь ))
Но сайт совсем не молодой.
Это тестовый домен. Сам сайт тут 5psy.ru
Работает еще на joomla 1.5
Там именно такие урлы у статей. Поэтому при переносе было очень важно сохранить их в том виде, в котором они были проиндексированы поисковыми системами.

Freeman
tagDiv Member

Freeman, используйте плагин SEO plugin by Yoast, который рекомендуют разработчики Темы.

В его настройках можно убрать вывод вложенных категорий в ссылках, если я правильно понял задачу.

SEO plugin by Yoast уже использую, но насколько я разобрался он не позволяет удалить родительские категории из url оставив только одну последнюю по уровню вложенности.

Bogdan B.
tagDiv Staff

Hello,
You can place ads on the mobile theme from the mobile theme settings here: http://screencast.com/t/UirT16eMqF
Unfortuanlty there is no ad spot before the latest articles section on the homepage so it will have to be added in the mobile theme files. You can use a do_shortcode function like so: http://screencast.com/t/RkyB7Dnq

Here is the code needed: <?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
This will render the ad from custom ad 1 in the mobile homepage.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

The tabs you mention are the ajax filters. please use this guide to learn about their functionality: https://forum.tagdiv.com/block-settings-tutorial/

Thank you!

Bogdan B.
tagDiv Staff

Hello,

We will need more details in order to help in this matter. The category tag on modules and blocks can be activated for each one in particular from here: http://screencast.com/t/s4ITnrWeP

Thank you!

etateam
tagDiv Member

Hello,

thanks for response. Unfortunately, Facebook counter don’t work from 2 weeks. Infact it is blocked to “1013 Fans” from 2 weeks (Page have 2.5k likes).

Can you help me, please?
Thank you!

iNBishkek Magazine
Participant
#0

Hi!

I want to know if there is an easy way to customise the navigation tabs on Block 1 in the main website page only. Been playing with this for a while and changing settings – no results – I just can’t figure it out.

I’ve placed a slideshow and more info here: http://testsite.inbishkek.com/block1

If you need login info, or other details, please drop me an email.

Thanks for your help,
iNBishkek Magazine

Catalin
tagDiv Staff

Hello themesic,

By default, the theme uses the pagebuilder+latest articels+pagination template, like this -> http://screencast.com/t/uZwQrihcY If you want to add some text to the very bottom of the page, under the pagination from latest articles, please notice that you will have to use the do_shortcode method and add it in the page-pagebuilder-latest.php core file. First of all, you will have to create your shortcode from Visual Composer editor, like this -> http://screencast.com/t/07OI4ByF6q -> http://screencast.com/t/AziZGQihBS

<?php echo do_shortcode('[vc_row][vc_column][vc_column_text]I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.[/vc_column_text][/vc_column][/vc_row]');?>

This snippet of the code should be placed here -> http://screencast.com/t/Rh36Bxkb and the result you should see here -> http://screencast.com/t/3Y9KTRHttw

Hope this helps!

If is not what you mean, please provide more details.

Thanks.

#0

Hi TagDiv team,

I am trying to set up my social networks so they link to my Instagram, Facebook and Twitter accounts. When I go to social networks in the theme panel, I see a whole load of social media platforms with an open block next to them. Inside the block is a #.

What do I type into this block to link to my social media accounts. I have tried the Twitter handle but it doesn’t connect to the Twitter home feed? Must I remove the #?

Thanks for your help?

Dean at luxurytraveleditor.com

Equapio
tagDiv Member

Hi there,

i tried to put ads in the loop of only tag pages as described above with the ad counter. I need to show an ad after post 2 and 4. It only returns this on the tag page after the 2nd post exerpt: [td_block_ad_box spot_id="custom_ad_5"].

Could you please advice how i can achieve that? Or where exactly i have to put the shortcode or a php function to get it working?

Thanks in advance!

Verstegen
tagDiv Member

No, the plugin Wordfence isn’t installed.
As mentioned before I’m able to save all theme settings. The weird thing is that the message appears ONLY when I click on the tab ‘IMPORT/EXPORT’ of the theme panel. And can’t get into the import/export window of the theme panel. Even when I have saved settings before, this message comes up when I click on (only) the tab IMPORT/EXPORT. The rest of the tabs of the theme panel are accessible and working fine (and changes are even saved).
Is it possible that a plugin is blocking only that part of the theme?

Bogdan B.
tagDiv Staff

Hello,

Try to use !important if the css does not apply as it means the code needs to be more specific and with a greater priority. Use the code like so:
.block-title{
border-bottom: 2px dotted black!important;;
}

It will affect all block titles though if you use the code like this.

Thank you!

Viewing 25 results - 28,751 through 28,775 (of 39,816 total)