Search Results for 'block'

Results from the Forum
Marius
tagDiv Staff

Hi,
Is not outdated, the solution works great, please read carefully the entire tread.

You have an old version? older then 3? Because we have changed the code a lot.
Something is wrong in your code.

Marius
tagDiv Staff

The solution above is for the loop, latest article: http://screencast.com/t/naTmufN1S

For block works only if you use the full layout in visual composer and use the Default template with sidebar that force the layout on 2 columns.

Radu A
tagDiv Member

hi,
identify what modules you are using in your blocks : http://screencast.com/t/nOoUIJXl

then : http://screencast.com/t/eyG51lYZMR

Thanks for you message.
Radu A.

ToniLaird
tagDiv Member

Hi Radu

The theme is fantastic and no matter what I will use and work around it. 😉

I discovered that turning on the ‘show author box’ solved the ‘hatom-feed hatom-entry Error’ This is now fine. I can now see the rating stars in Google but my image wont show because of this:

Error: No rich snippet will be generated for this data, because it appears to include multiple reviews of an item, but no aggregate review information

Replies to this in the WordPress forum: There’s something wrong with the rating block/plugin average rating configuration.

Could you possible take a look at my site. It could be like my hatom-feed where simply I haven’t enabled something. If we can’t get this working I’ll just turn all the posts into ratings from stars. It is a fantastic theme and I appreciate your support

cybergetro
tagDiv Member

Hi Marius,

I tried to install Advanced Custom Fields like you suggest in the post [https://forum.tagdiv.com/topic/function-to-hide-ads-and-function-to-show-author/#post-9187], but I believe the instructions are outdated.

I can’t see this image posted by you on Screencast:

Then add this code and !get_field(‘hide_ad’) like here: http://screencast.com/t/5FOgXORGMMpand

AND if i do this: http://screencast.com/t/5FOgXORGMMp

I get this message

Parse error: syntax error, unexpected T_LOGICAL_AND in /home/getro/www/getrao/wp-content/themes/Newspaper-v3/includes/modules/module_modifier/td_module_blog.php on line 41

I’m doing something wrong or the code change since Newspaper Theme Version 3.0?

Regards,
Cybergetro

simchris
tagDiv Member

On my sites, the ad in top bar, below article, and sidebar already “auto center” using the “responsive” AdSense code from Google.

I think Marius needs to know an example (a case) where you are having the ads NOT centered, such as a custom block of text, or what exactly. A link to page, post, or where you’re using the AdSense code on your site and if you’re manually putting into your template or using the Newspaper theme admin panel “AD” boxes to insert the code.

r1kay
Participant
#0

I’ve installed the ajax_the_view and wp-postviews plugins and it show the views on the post pages, but it doesn’t show the views on the homepage and category pages. I use block 2 and 3 on the homepage and module 6 and 7 on the category pages. Also, the views wont show on post pages on mobile.

Also, those plugins slowed down my website. Most visitors won’t noticed because of the cached pages created by WP Super Cache.

mehedi
tagDiv Member

It works now! Thanks..How can I add author name in blocks?

icecodepro
tagDiv Member

This also happened to our site this morning with the upgrade to wordpress 3.9. The Visual Composer HTML block doesn’t show any of the kitchen items and leaves what appears to be blank. You can click on the Text tab and that will show you what content was in the column. You will need to work with pure HTML coding to edit/add information. This is a workaround.

Here is what I found on the Visual Composer site:
09.04.2014 – ver 4.0.5
– Compatibility with new TinyMCE version in WordPress 3.9 added

axonic
tagDiv Member

Hi,

I made changes accordingly, and changed the custom column at the visual editor

But it’s not working
http://deepciel.com/wordpress/wp-content/uploads/2014/04/Screen-Shot-2014-04-17-at-10.17.22-PM.jpg

Please assist.
Thanks.

enterpr1se
tagDiv Member

Thx,
I will try it later
If the code change to check tags eg. noads , then will not show ads, it will better as no plugin is needed 🙂

Marius
tagDiv Staff

Hi,
Add this code echo td_global_blocks::get_instance('td_ad_box')->render(array('spot_id' => 'custom_ad_1')); like here: http://screencast.com/t/t1CDP5kDZ

And you can use the Custom AD 1 for that area.

Thanks!

Marius
tagDiv Staff

Hi,
You can sett an offset for each block i mean to start from x post number. https://www.youtube.com/watch?v=–jQZbzteU4

Thanks!

Marius
tagDiv Staff

Hi,
Here is a solution: http://screencast.com/t/JhEy6E8su

Replace this with the code above: http://screencast.com/t/juOEmOlarAY

if (td_util::is_ad_spot_enabled('content_inline') and is_single() ) {

            $content_buffer = ''; // we replace the content with this buffer at the ened

            $content = apply_filters('the_content', $content);
            $content = explode('<p>', $content);
            $halfway_mark = ceil(count($content) / 2);
            $first_half_content = implode(' ', array_slice($content, 0, $halfway_mark));
            $second_half_content = implode(' ', array_slice($content, $halfway_mark));

            $content_buffer .= $first_half_content;

                        switch ($tds_inline_ad_align) {
                            case 'left':
                                $content_buffer .= td_global_blocks::get_instance('td_ad_box')->render(array('spot_id' => 'content_inline', 'align' => 'left'));
                                break;

                            case 'right':
                                $content_buffer .= td_global_blocks::get_instance('td_ad_box')->render(array('spot_id' => 'content_inline', 'align' => 'right'));
                                break;

                            default:

                                $content_buffer .= td_global_blocks::get_instance('td_ad_box')->render(array('spot_id' => 'content_inline'));
                                break;
                        }

            $content_buffer .= $second_half_content;

            $content = $content_buffer;
        }

Share 🙂

Marius
tagDiv Staff

Of manual add condition by post ID and this will work without any plugins.

Marius
tagDiv Staff

Hi,
Here is an implementation, take a look on the entire tread. https://forum.tagdiv.com/topic/function-to-hide-ads-and-function-to-show-author/#post-9187

Thanks!

Marius
tagDiv Staff

Hi,
You can change it on 3 columns but will affect entire modules. You can try it and see if work correctly.

Change like here:
1. http://screencast.com/t/CNni9IVMB
2. http://screencast.com/t/jk2hpONCOdI

Thanks!

Radu A
tagDiv Member

hi,

try to use less blocks on the homepage,

try to set the Big Slide to show post from another category, see if it works.

unique article system only insure that there are no duplicated articles on the page.

Thanks for you message.
Radu A.

Marius
tagDiv Staff

Hi,
I found this, if is usefull: https://support.google.com/webmasters/answer/1306778?hl=en
They say this:

Google will only show authorship in search results when we think it will be useful to the user

Seems like Google decide if the image will show up or not.

Thanks for the message!
Have a nice day!

simchris
tagDiv Member

Not easily. Used to be a hack using SMS. But Google has been slavishly trying to block most methods to auto-post to G+. The “SNAP” plugin can do it, for a price, which is what we’re moving toward using.

r1kay
tagDiv Member

What do you mean with offset filter? How does that work?

PhilDbz
tagDiv Member

Hi there,
I had the same problem. It’s due to the fact that the the_views function in wp-postviews.php reads the value of the “views” custom field from the homepage instead of the single posts mentioned in the blocks, so all counters on the homepage show the same value.
I fixed this commenting out
//$post_views = the_views(false); in td_module.php
and adding
$post_views = get_post_meta( $this->post->ID, 'views', true );
which reads the value of the views custom field of each single post. It seems to be working so far… but be careful, it has some implications, as it overrides the the_views function.

Marius
tagDiv Staff

Hi,
Is not possible. The theme have the build in grid system and can’t be changed easily, sorry for the inconvenience!

All blocks are based on the grid and if you change the grid all things will be affected.

Thanks for the message!

  • This reply was modified 12 years by Marius.
enterpr1se
tagDiv Member

If I want to use if else to control ads without plugin
What should I do?
Where should I put the code

Marius
tagDiv Staff

Hi,
What do you want to sort and where? on a loop on a block? I’m nut sure if will work. Please provide us more details.

Thanks!

Viewing 25 results - 39,076 through 39,100 (of 39,816 total)