Search Results for 'move bottom ad'

Results from the Forum
Lucian
tagDiv Staff

Hi,

Please add this code:

<?php echo do_shortcode('[td_ad_box spot_id="content_bottom"]'); ?>

…to your single.php file like this: http://screencast.com/t/My2fHvSBj

Add this code in Theme Panel -> Custom CSS to move the ad box further from the diqus block:

.td-a-rec-id-content_bottom {
margin-top: 20px;
}

Should look like this: http://screencast.com/t/ZOFFoxhXNuB

Thanks

Lucian
tagDiv Staff

Hi,

Add this CSS in Theme Panel -> Custom CSS:

.home .td_read_more {
position: relative;
bottom: -20px;
}

Thanks

  • This reply was modified 12 years by Lucian.
Richbilt
Participant
#0

Hi there – I’m just starting to use the review functionality and I’m wondering how I can move the review from the default position – which seems to be the bottom of the blog – to elsewhere on the page (somewhere near the top)?

Also, it takes up quite a bit of page real estate – is there a way that someone like me with little html experience can reformat it so it takes up less space – essentially reducing the size vertically?

Thanks for your help!

Billy

Radu A
tagDiv Member

hi,
in the latest version of the theme we have moved the google analytics code from bottom next to the header

Thanks for you message.
Radu A.

Manuel Fink
tagDiv Member

Hey Emil,

Thx for your awesome support!

to 4th. I think id be really helpful to support continious loading for similar articles since it is very important to keep people on the page by giving them fitting recommendations.

I just worked 2 nights tweaking the theme for social performance. Gonna run tests tomorrow. I added a second social sharing bar, which is fixed to the bottom on mobile devices. I moved the comments ahead of the similar articles and integrated facebook comments instead of wp comments. Reduced font a little bit. Also I added a feature to hide the comments and show them by clicking the show comments bar. you may want to take a peek at http://www.dailycat.de/unglaublich-vor-welchem-tier-sich-diese-starke-katze-fuerchtet-514/

Is it a lot of work to integrate the continious loading into the similar articles?
May be also a good feature for the theme to have a 4/5 option in the similar articles interface “random” and a second trigger continuous loading.

I really appreciate your fast and helpful replies.

Best from Germany, Manu

Emil G
tagDiv Staff

Hi,

You can still show the tags on posts, just add this code into the loop-single.php file:
http://screencast.com/t/1UXn8sTfE

<?php
            $closing_c_tags = 'td-tags-and-social-wrapper-box-bottom-line';
            $t_post_tags = $td_mod_single->get_the_tags();
            if(!empty($t_post_tags)) {
                $post_tags_wr = '<div class="td-tags-and-social-wrapper-box ' . $closing_c_tags . '"> ' . $t_post_tags . '</div>';
            }
            echo $post_tags_wr;
            ?>

Thank you, Emil G.

Radu A
tagDiv Member

hi,
lets start from the begging, the reason way google is giving that “Remove render…..” is because when the source of the site get downloaded and loads into the browser it find resources like css and javascript files, font file, etc and the browser stop the downloading of the page to start downloading the other files (css, javascript files) and google says that is better to download the source of the page first and at the end to download other resources.

now that we found what happens, moving the css and javascript code at the bottom of the page – I think ???- it can be done by doing something like :
keep the style.css of wordpress, but put all the code in another css file, then
read the file and put the readed content between <style> and </style> in the
footer of your site (probably thru the use of hooks). do the same for javascript
files(need to use the <script> and </script> tags).

Now imagine that for every plugin that have css files and/or javascript files you need to do this reading of files and pasting in the bottom of the page. Is hard to do this but will insure that message “Remove render …..” will disappear.

==== about speed buster
all that td-speed-booster is doing is to move the javascript files from the header of the page to the bottom of the page. in theory this will have to increase the speed in google pagespeed application, but in your case seems that it fails, really don’t know way, this has to be checked.

Thanks for you message.
Radu A.

Gee95
Participant
#0

Hello,

I would like to remove the sticky menu for mobiles and replace it with a sticky advert from Google Adsense.

Is it possible for the ‘header ad’ to become sticky on all pages and posts? (as it’s displayed at the top of the mobile webpage).

Or to add a sticky ad at the bottom of the page? (either way is fine, but prefer sticky header ad).

Thanks 🙂

Marius
tagDiv Staff

Hi,
Do you want to remove that line? I see that is added by somebody directly with style, default that code not was there.

If you want to remove it, try with this CSS:

.block-title {
    border: 0px !important;
}

Thanks!

Peter
Participant
#0

Hi there,

I have set up my site on my local server and had everything working perfectly. I then migrated several times with different methods but each time I have the same broken theme which is currently live: http://coconutoilpost.com

I have gone back to my development site and deactivated all the plugins which then broke mainly the home page. I then worked through and found the issue with your integration with WPBakery Visual Composer, all other plugins work on the development site. The issue was the same with wp 3.9 and with 3.9.1 – Theme version 3.8 – Media Bakery 4.1.2

The issues are:
1. When logged in the front page admin bar not showing
2. Drop down mega menu not working
3. Search bar not working
4. Bottom page related articles pop up not working.
5. Back forward navigation not working.
6. Category Background images not working.

Here we are with the error messages with All plugins turned off:

( ! ) Fatal error: Call to undefined function wpb_js_remove_wpautop() in /Users/Icon/Documents/Websites/coconutoilpost.dev/wp-content/themes/Newspaper/includes/shortcodes/td_text_with_title.php on line 30
Call Stack
# Time Memory Function Location
1 0.0093 310272 {main}( ) ../index.php:0
2 0.0131 313392 require( ‘/Users/Icon/Documents/Websites/coconutoilpost.dev/wp-blog-header.php’ ) ../index.php:17
3 0.1704 21169656 require_once( ‘/Users/Icon/Documents/Websites/coconutoilpost.dev/wp-includes/template-loader.php’ ) ../wp-blog-header.php:16
4 0.2031 21516928 include( ‘/Users/Icon/Documents/Websites/coconutoilpost.dev/wp-content/themes/Newspaper/page-homepage-blank.php’ ) ../template-loader.php:74
5 0.8090 25106152 the_content( ) ../page-homepage-blank.php:13
6 0.8091 25108296 apply_filters( ) ../post-template.php:211
7 0.8106 25112024 call_user_func_array ( ) ../plugin.php:192
8 0.8106 25112056 do_shortcode( ) ../plugin.php:192
9 0.8107 25113504 preg_replace_callback ( ) ../shortcodes.php:201
10 1.5932 29247360 do_shortcode_tag( ) ../shortcodes.php:201
11 1.5933 29247824 call_user_func ( ) ../shortcodes.php:287
12 1.5933 29247864 td_text_with_title->render( ) ../shortcodes.php:287

That’s all I can find at the moment. Hope all can be sorted out.

Many thanks

Peter

cunamis
Participant
#0

Hello,

First of all I’d like to say a big thank you for such a great WordPress Theme. I was looking for a very long time for news/magazine style WP theme fully compapitable with buddypress. So that’s how I came accross to choose this theme.

For sure there are also some issues, which I’m facing as well, so I hope you’ll be able to help me to solve it.

So let’s get started.

1. Ability to move Author Box to the top of the page.

Well, in my opininion for users it is much more important to see post authors at the top of the article nor at the bottom, when there is a multi-author website. So don’t you think that it would be very cool if we would be able to move author box to the top of the page?

Also some more issues:
– Now it shows author’s username in author box. Would it be possible somehow to change it automatically to author’s First and Last Name?
– Also is it possible to do drop-down author box similar to starbox does have?
author bio drop down

2. Add LinkedIn share button together with other social sharing buttons

Now all articles can have Facebook, Twitter, Google+ and Pinterest share buttons. But I think LinkedIn is also worth of being together with these buttons as it usually sends quite a lot of social visitors.

Also maybe it would be worth to consider to add social counters similar to Mashable does have?

3. Source URL and VIA url options doesn’t work properly

This theme does have a very cool option which let’s to mention who wrote the article and put a nice looking source.

But the problem is if let’s say you’ll put http://www.google.com/analytics in “Source URL” and http://www.google.com in “VIA URL”, then the system generates broken links and it redirects to 404 error pages.

In this case “Source URL” redirects to http://www.mywebsite.com/my-post-url/www.google.com/analytics and “Via URL” redirects to http://www.mywebsite.com/my-post-url?www.google.com, when it should redirect to http://www.google.com/analytics and http://www.google.com.

4. Ability to change text colors in main slides

Now if you change the color of the whole site, then the color in big slide will change as well.

Slide image color

The main problem is if I change website color, then sometimes the collor of title and collow of the box, which wraps the title, doesn’t look very attractive. So, it would be great if we could change class=”td-sbig-title-wrap” and class=”td-sbig-title” (the same is valid for small slides as well) via admin panel.

In this case I can change slide colors myself via css. But I think for many user it would be very useful if the would have a chance to change those colors themselves via admin panel.

5. Consider about “register” option in Login form at the top menu

There is a very cool option that we’re able to insert login form at the top menu, but I think it would be fair enough, that if users can login, first of all they should get an option to register on the site? 🙂

I think in that form should be additional “Register” form or at least something similar to “Not registered yet?”.

I want to thank you in advance in taking your time to read my problems and recommendations.

I do really believe that all those options would be very useful for other users as well, so maybe it is worth to consider to implement them in the next theme updates.

If not, I would really apreciate your recommendations on how I would be able to fix all those problems myself.

Thanks a lot and waiting for your honest answer 🙂

Radu A
tagDiv Member

hi,
I see the problem,
you can try this css.it will only hide from view the home link, but the link is still there. I cound not remove the link and make mega menu to work , sorry about this:

#td-top-menu ul.sf-menu li:first-child a span{
 display:none ;
}

#td-top-menu ul.sf-menu li:first-child a {
  border-bottom-color : #ffffff;
  cursor: default;
}

here: http://screencast.com/t/YdKuPOh3i8

Thanks for you message.
Radu A.

simchris
tagDiv Member

Just for reference, the code I posted in the PageSpeed sticky topic – which can be added to bottom of functions.php file. Your mileage may vary 🙂

function remove_cssjs_ver( $src ) {
    if( strpos( $src, '?ver=' ) )
        $src = remove_query_arg( 'ver', $src );
    return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
  • This reply was modified 12 years by simchris.
simchris
tagDiv Member

@orcn

gzip/deflate is managed at the web server level – it needs to be running for your hosting account. This allows the web server to automatically compress everything sent by the web server from your site to the web browser. This alone is good for 20+ points. This is the #1 thing which should be addressed. Ideally your web host should have this on for your account. If they won’t enable it, move to another host who will!

If you look at my posts there is an example of the .htaccess settings that I used for
the “expiration headers”

For images:
1) you need to use a compression plugin, like smush.it or similar (see comments from others in the thread); this will optimize all the thumbs created by WP and the theme
2) upload well compressed images (e.g., 25-40kb max, not 150kb or 700kb — unless you’re doing some kind of photo/portfolio site where quality is first concern)
3) consider changing the compression level by default in WP, which is done in the functions.php file at bottom using the code I’ve suggested in my posts — setting it to something like “60” vs the default “90” (I think), will cut the size of the thumbs by a huge amount.

For my particular brand of magic, try putting this at the end of your .htaccess file:

AddType text/javascript .js

# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2500000 seconds"
ExpiresByType image/jpeg "access plus 2500000 seconds"
ExpiresByType image/png "access plus 2500000 seconds"
ExpiresByType image/gif "access plus 2500000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
ExpiresByType text/css "access plus 700000 seconds"
ExpiresByType text/javascript "access plus 700000 seconds"
ExpiresByType application/javascript "access plus 700000 seconds"
ExpiresByType application/x-javascript "access plus 700000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>

<IfModule mod_headers.c>
    Header unset ETag
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 /xmlrpc.php
</IfModule>

NOTE: if you use pingback or post by email, don’t put in that last 3 lines, as I do this to keep spammers from posting comments via pingback even when comments are off (!).

The above assumes your web host is running Apache, and not IIS, or nginx or other. If so, you might have to tweak those for your particular host. Apache is the most common, however.

Also: make backup, via FTP, or your hosting panel fileManager of your .htaccess file first; then if your site doesn’t load with the new elements, put back your original version.

Hope that helped.

  • This reply was modified 12 years by simchris.
Radu A
tagDiv Member

hi,
in : http://screencast.com/t/PeGVUjNb

change :

/**
     * More stories box
     */
    if(tds_more_articles_on_post_enable == "show") {
        //adding event to scroll
        jQuery(window).scroll(function(){

            var cookie_more_box = td_read_site_cookie('td-cookie-more-articles');
            //alert(cookie_more_box);

            //setting distance from the top
            if(!isNaN(parseInt(tds_more_articles_on_post_pages_distance_from_top)) && isFinite(tds_more_articles_on_post_pages_distance_from_top) && parseInt(tds_more_articles_on_post_pages_distance_from_top) > 0){
                var set_distance = parseInt(tds_more_articles_on_post_pages_distance_from_top);
            } else {
                var set_distance = 400;
            }

            if (jQuery(this).scrollTop() > set_distance && cookie_more_box != 'hide-more-articles-box') {
                jQuery('.td-more-articles-box').addClass('td-front-end-display-block');
            } else {
                jQuery('.td-more-articles-box').removeClass('td-front-end-display-block');
            }
        });

        //adding event to hide the box
        jQuery('.td-close-more-articles-box').click(function(){

            //hiding the box
            jQuery('.td-more-articles-box').removeClass('td-front-end-display-block');
            jQuery('.td-more-articles-box').hide();

            //cookie life
            if(!isNaN(parseInt(tds_more_articles_on_post_time_to_wait)) && isFinite(tds_more_articles_on_post_time_to_wait)){
                //setting cookie
                td_create_cookie('td-cookie-more-articles', 'hide-more-articles-box', parseInt(tds_more_articles_on_post_time_to_wait));
            }
        });
    }

with this:

/**
     * More stories box
     */
    if(tds_more_articles_on_post_enable == "show") {
        //adding event to scroll
        jQuery(window).scroll(function(){

            var cookie_more_box = td_read_site_cookie('td-cookie-more-articles');
            //alert(cookie_more_box);

            //setting distance from the top
            if(!isNaN(parseInt(tds_more_articles_on_post_pages_distance_from_top)) && isFinite(tds_more_articles_on_post_pages_distance_from_top) && parseInt(tds_more_articles_on_post_pages_distance_from_top) > 0){
                var set_distance = parseInt(tds_more_articles_on_post_pages_distance_from_top);
            } else {
                var set_distance = 400;
            }

            var scrollPosition = window.pageYOffset;
            var windowSize     = window.innerHeight;
            var bodyHeight     = document.body.offsetHeight;

            var set_distance_from_the_bottom = Math.max(bodyHeight - (scrollPosition + windowSize), 0);
            var set_distance_to_stop = 400;

            if (jQuery(this).scrollTop() > set_distance && cookie_more_box != 'hide-more-articles-box') {

                if (set_distance_from_the_bottom < set_distance_to_stop && cookie_more_box != 'hide-more-articles-box') {
                    jQuery('.td-more-articles-box').removeClass('td-front-end-display-block');
                } else {
                    jQuery('.td-more-articles-box').addClass('td-front-end-display-block');
                }

            } else {
                jQuery('.td-more-articles-box').removeClass('td-front-end-display-block');
            }
        });

        //adding event to hide the box
        jQuery('.td-close-more-articles-box').click(function(){

            //hiding the box
            jQuery('.td-more-articles-box').removeClass('td-front-end-display-block');
            jQuery('.td-more-articles-box').hide();

            //cookie life
            if(!isNaN(parseInt(tds_more_articles_on_post_time_to_wait)) && isFinite(tds_more_articles_on_post_time_to_wait)){
                //setting cookie
                td_create_cookie('td-cookie-more-articles', 'hide-more-articles-box', parseInt(tds_more_articles_on_post_time_to_wait));
            }

        });
    }

http://screencast.com/t/zBEmdCdU4

Thanks for you message.
Radu A.

  • This reply was modified 12 years by Radu A.
  • This reply was modified 12 years by Radu A.
Radu A
tagDiv Member

hi,
about the feed, can you try disable all the plugins and try again, some plugins modify the feeds, also the /feed is managed by wordpress and has nothing to do with our theme.

about the duplicate post, use a different page template (with pagination) : http://screencast.com/t/pj0N7d1dTbue.

with the space at the bottom I can help you but only if you remove infinite load, because I can not reach the bottom of the page.

Thanks for you message.
Radu A.

london789
Participant
#0

1. Big Slide – can the headlines over the images be in Sentence Case not all in full capitals?

2. Headline weight – Can these be made bold (I am using Arimo webfont so I’d like ‘Bold 700’)

3. Headline links: – Can the headlines show that they are links without hover? (eg same behaviour as http://www.bbc.co.uk/news/.

4. Sidebar widget text links: I posted text there and the links don’t show they are links until hover – can links there behave like other links ? (eg link colour)

5. Is it possible to move the tags from the bottom of a post to the top? sit below categories?

Thanks
Thanks

Julianap
Participant
#0

Hi,

I would like to have some help with the customization:

1. I would like to have the header with no background, transparent. Now is white, like the body: http://maisquemae.pt/ but we want it transparent, so the site background (pink stripes) would appear in the header too.

2. How can I give more space btw the bottom of the logo and the main menu? As you can see, the logo is too close.

3. Is that a way to put 4 small square ads on the sidebar align in 300 x 250? I already have 300×250 ads, but I want 4 smaller ads, 2 on top, 2 on bottom, on the sidebar. Is that possible?

4. How can I remove the title of a widget? If I don´t put any title it appears the box title empty anyway on sidebar.

Many thanks in advance 🙂
Juliana

simchris
tagDiv Member

This may not be specific to your issue, but FOUT is a common issue with the trade off between fancy fonts and page load/speed.

This is called “flash of unstyled text” (FOUT) and is a common issue with using Google Fonts (etc.), as they are loaded from someplace other than your own site/server. SO, often the page starts to load, uses browser fonts, then the fonts load from external source (e.g., Google CDN). This is somewhat unavoidable if you’re going for maximum “pagespeed” as not everything can load at same time even when async or using the speed booster beta plugin; many times the loader for such fonts is deferred and moved to bottom of page to allow “above the fold” content to load quickly for a better pagspeed rating — such as with Google PageSpeed Insights).

Often something is slowing page down like a plugin, too large image, or similar, and this “holds up” getting to the font loading.

Solutions typically
1) change order of font loading
2) switch to web-safe fonts only
3) if using CSS over-rides on style sheet embedded in page AFTER main style loads, better to edit style sheet if there is measurable delay between the default style loading and the over-ride (meaning if main style is at 48 and your over-ride is 40; then the 48px still loads first, and then gets over-ride – by not doing over ride and editing core file, it starts at 40px to begin with).

FOUT isn’t too terrible, but it can be annoying.

Some of the above may be only informational to your issue, but I’ve been learning to live with this on some of our sites for better speed.

atensis
Participant
#0

Hello,

I have added some extra code to the functions of newspaper. This code gives every image in a gallery a number.

Since I have updated to 3.01 I can no more ad this code to the functions.php. When I do that, it shows a blank page.

Here is another site of mine where it works http://www.maennerhoehle.com/arrrghhh/

Below is the code i need to place in the functions.php and the CSS.

Could you please check that? This function is very important for my site!

Thank you very much for your feedback!

Best regards,
Florian

Code for functions.php:

add_action( 'after_setup_theme', 'wpse_74492_replace_gallery_shortcode' );

/**
 * Replace the default shortcode handlers.
 *
 * @return void
 */
function wpse_74492_replace_gallery_shortcode()
{
    remove_shortcode( 'gallery' );
    add_shortcode( 'gallery', 'wpse_74492_gallery_shortcode' );
}

function wpse_74492_gallery_shortcode( $attr )
{
    // Let WordPress create the regular gallery …
    $gallery = gallery_shortcode( $attr );

    $gallery = preg_replace_callback( '~<img~', 'wpse_74492_gallery_callback', $gallery );

    return $gallery;
}

function wpse_74492_gallery_callback( $matches )
{
    static $count = 0;
    $count += 1;

    return "<span class='gallery-number'>$count</span>" . $matches[0];
}

This code is for the CSS:

.single .gallery img {
	width: 500px !important;
	height: auto;
}

.gallery-number {
	position: absolute;
	left: 0;
	top: 0;
	background: #ff6a62;
	padding: 0 10px;
}

.gallery-item {
	margin-top: XXpx !important;
	margin-bottom: 22px !important;
}
maxishere
tagDiv Member

Got it.. okay, here’s where we’re at.

Your original method DID work. However, because there is an advert and our social media icons plugin in between the bottom of the post and the author box, it didn’t show any differently. I just moved $buffy .= $this->get_author_box(); above the content, and the box appeared above. So your method did work afterall.

However, I need a way to get that author box above the social media icons plugin and the advert, effecively taking priority as the very first thing after the post content.

Any ideas?! Thank you for your help.

Radu
tagDiv Staff

Hi all,

I will try to solve this but it’s a hard problem :). The speed booster plugin moves all the styles at the bottom of the page and the theme default style is loaded first (because it’s at the bottom the style is instantly applied to the rendered page) and after that the theme outputs the colors.

Marius
tagDiv Staff

Hello,
1. For the bottom shadow you can edit this image images/header/bg-shadow.png and make the shadow like you want.

2. You can use this if you want to generate a gradient from CSS http://www.colorzilla.com/gradient-editor/ or make it with a png and overlap it if is possible somehow.

3. Remove from widget the socials, and about ad on header, don’t use ads and the space will be empty.

If you use background image or color for categories the them will switch to boxed version.

Thanks for the message!

Anonymous
tagDiv Member

Yes r1kay it’s basically this:

function revv(){
   global $post;
   $test_module_inst = new td_module_1($post);
   $review = $test_module_inst->get_review();
 return $review;
}

function content_injector($content) { 
		global $wp_query;
		global $post;	
		$postid = $wp_query->post->ID;                  
		if (get_post_meta($postid, 'top_ad', true) != 'off' ) {	
			//top_ad code
		} 		
		if (get_post_meta($postid, 'bottom_ad', true) != 'off' ) {	
			//bottom_ad code
		}
		 if (is_single()) {
			$share_after_ad = do_shortcode('[shareaholic app="share_buttons" id="4703992"]');
			$related_after_ad = do_shortcode('[shareaholic app="recommendations" id="4704000"]');
		 }

		$review = revv();
	        
		$content = $top_ad . $content . $review . $bottom_ad . $share_after_ad . $related_after_ad;
		
		return $content; 
}
add_filter('the_content', 'content_injector');

By using the code above you can move the review to the top of the post, bottom, after content and before ad, etc.

Thanks for helping me out Radu.

Also you will need to comment out or remove the function that calls the review on td_module_1.php

r1kay
tagDiv Member

You can manually move the get review code in td module 1 to somewhere else on the page. It is located in the footer clearfix of the module 1 file. Thats how i added my own social sharing buttons an fb comments box and moved the get next and prev post to the bottom of the post pages.

Viewing 25 results - 1,176 through 1,200 (of 1,205 total)