Search Results for 'remove tag from post'

Results from the Forum
dhvanesh
Participant
#0

Hi,

I’ve been using your theme for my blog and it’s great.

There’s a tiny bit of a help that I want. I’m trying to remove the <time> tag that’s associated with every post-meta but it’s hard to find out where to do that. Can you point me in the right direction?

Basically, I just want to remove the <time> tag that goes like this:

<time itemprop=”dateCreated” class=”entry-date updated td-visibility-hidden” datetime=”2014-07-04T15:12:23+00:00″>Jul 4, 2014</time>

I can get it removed through “css” but I want to remove it at the html output level so that search engine spiders can’t fetch that data from my page. Any help would be really great!

Thanks in advance.

Emil G
tagDiv Staff

Hi,

1. You can import this predefined syles like this:
http://screencast.com/t/yLOZrUAt
http://screencast.com/t/qLSTINIg

Do you use the default template? – http://screencast.com/t/e4Itye2zr
You can target h1, h2, h3 with custom css (add the css inside the Theme Panel -> Custom CSS):

h1 {
color: red;
}
h2 {
color: red;
}
h3 {
color: red;
}

But this will affect all h1, h2, h3 titles on the site, you have to add a specific class to target them only on the pages/posts you want.

2. I belive you are reffering to the featured image. The feature image can be removed like this: https://forum.tagdiv.com/how-to-hide-the-featured-image-on-post/

3. You can delete the code (or modify it) from the td_module_blog.php – http://screencast.com/t/ZiGcAU70s
You can find code for the other buttons above it, modify them to behave the way you want.
4. If you don’t use pagination or load more / infinite load options edit your home page and enable the “Unique articles” option like this: http://screencast.com/t/pUaAtaYg
If you use pagination configure blocks to display different categories.

Thank you, Emil G.

simchris
tagDiv Member

Ironically, many of the theme updates are to fix issues with added features requested by users.

Disagree with some of these:
most people don’t look at weather on websites anymore since it’s on their cellphone. 5-10 years ago this was popular… now? Not so much.

If you have your breaking news on homepage, category page, tag, right side of each post, a news ticker now is a bit gimmicky unless you have breaking news every 5-10 minutes. 99% of major news portals no longer have this.

Full search bar – many people don’t search “on” the site anymore; and MOST designs for websites have gone to the search only appearing when clicked (NY Times, LA Times, etc.)

“Readers” start on home page. Anecdotal visitors come from search engine search, not from searching on site.

Just my thoughts. All of these “bloat” elements really slow down the site, page load, pagespeed, and most have to be removed for mobile, so, not super useful to most people.

Comments based on our news portals online 15 years, updated daily. Your mileage may vary.

PERSONALLY: I would like to see an update to ensure all the underlying elements are 100% up to date and 100% solid for a newspaper theme, and would like to see the author element on by default on post pages which is industry standard practice – this is more important to us than more bbpress, woocommerce, supermenus, etc. Speed, reliability, consistency.

Pedro Ferreira
tagDiv Member

Hi Lucian,

Many thanks! With the help of a friend i was able to bypass the problem completely using the WP No Category Base – WPML compatible plugin. I guess it had something to do with the fact that in mid production process we changed the URL format of the content.

Here is the site, we just wen’t online and i want to congratulate tagDIV for the wonderful theme, great work guys.

http://goalpoint.pt/

Still have a couple of issues though, specially because i’m no expert on CSS at all.

1. The social icons in the theme don’t seem to be fully integrated with the destination social networks (eg: i’m able to post in facebook but no picture or title appear as it happens in the newspaper theme demo, just the website name link).

2. Trying to solve the issue above i made the mistake of activating jetpacks publicize whith inserted 3 extra social icons that i’m not being able to remove at this point even after deactivating publicize.

These are the main issues i’m having at this point, everything else seems to be running swell. Most apreciated if you can direct me to links that might help me solve these problems.

PS – as you see we did some homepage subtle CSS changes, nothing much.

thanks and all the best

Emil G
tagDiv Staff

Hi,

Please send an email at contact@tagdiv.com , add the link to this post and i will send you the modified file.

Thank you, Emil G.

Emil G
tagDiv Staff

Buna ziua,

Trimite un mail la contact@tagdiv.com , specifica problema (sau trimite un link catre acest post), adauga adresa site-ului si/sau poze.

Multumesc, Emil G.

Emil G
tagDiv Staff

Hi,

I can, please send me an email at contact@tagdiv.com , don’t forget the link to this post.

Thank you, Emil G.

mehedi
tagDiv Member

Fixed it! Removed this line of code from /includes/modules/module_modifier/td_module_blog.php Line 129

The Code:

$this_post_tags = $this->get_the_tags();
if(!empty($this_post_tags)) {
$wrapper_post_tags = ‘<div class=”td-tags-and-social-wrapper-box ‘ . $closing_class_tags . ‘”> ‘ . $this_post_tags . ‘</div>’; }

Thanks!

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

hi,
please go and delete the W3 Total Cache from the plugin directory manually. we have experience a problem with this plugin, even do we remove it it as still active.

here is a link to the documentation for posy views : https://forum.tagdiv.com/wp-postviews-post-view-counter-alternative-for-w3-total-cache/

I don’t know if you can still use your old page views number but hope this helps

Thanks for you message.
Radu A.

maxu
Participant
#0

Hi,
I installed w3 total cache and configurated like in document which in tagdiv support. After that i see postviews are not counted. then i installed wp-postviews plugin. It worked for me but all the statics were lost. so i decided to remove that wp-posviews. My pageview statics turned back normaly BUT now postviews are not count. Also i deleted w3 total cache and still not working. so all new posts views “0” and the old ones not counting..
What should i do?

Thanks.
my web. site: sanalsantiye.com

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

simchris
tagDiv Member

All that should go *after* the normal #END WordPress elements …

example (from one of my sites; using custom permalinks – don’t copy the elements for #wordpress or the mod_pagespeed stuff !)

<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters move_css_to_head
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters insert_dns_prefetch
</IfModule>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

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>
# END Expire headers

# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</IfModule>
# END Cache-Control Headers

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

ALSO: don’t include the last three lines if you are allowing trackback/pingbacks or using email to post via XMLRPC.

Don’t forget you need to have gzip/deflate running on your server also, which alone is good for 20 points!

And if you’re curious here’s my robots.txt file

User-agent: *
 Disallow: /cgi-bin
 Disallow: /cgi-bin/
 Disallow: /wp-admin
 Disallow: /wp-admin/
 Disallow: /wp-includes
 Disallow: /wp-includes/
 Disallow: /wp-content/plugins
 Disallow: /wp-content/cache
 Disallow: /wp-content/themes
 Disallow: /wp-content/upgrade
 Disallow: /wp-content/backup-*
 Disallow: /aff/
 Disallow: /search/*/*
 Disallow: /trackback
 Disallow: */trackback
 Disallow: /trackback/
Marius
tagDiv Staff

Hi,
I have here a solution, take a look https://forum.tagdiv.com/topic/function-to-hide-ads-and-function-to-show-author/#post-8993

Thanks for the message!

simchris
tagDiv Member

Update for those using mod_pagespeed – either on hosting service using .htaccess or self-hosted and using .htaccess to control on/off stuff.

UPDATE for Newspaper 3.5:

do not use these as they break the slide out recommended posts widget.

ModPagespeedEnableFilters move_css_to_head
ModPagespeedEnableFilters combine_css

These settings also appear to cause the “whiteout page” issue with the tagDiv Speed Booster 2.1 plugin, with 3.5.

<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters insert_dns_prefetch
</IfModule>

However, these minimal settings should *NOT* cause the page to “white out” since whitespace only removes empty spaces, comments are elements best removed anyway, and images and DNS has nothing to do with the Speed Booster AFAIK.

I will have to ping Radu on this issue once they get caught up on the current update cycle to sort out conflict with the speed booster plugin and mod_pagespeed, as obviously they should be able to work together and did so just fine in the 2x theme versions.

More later …

simchris
tagDiv Member

Hi
I’m updating this thread for consistency.

I just upgrade to Newspaper 3.5 and attempting to replicate this, with
Newspaper/includes/modules/td_module_1.php

if I remove the // for author name, it’s NOT printing on the posts although uncommenting on other modules does add the author byline to things like the sidebar modules or the indexes.

                <div class="meta-info">
                    <?php echo $this->get_category(); ?>
                    <?php echo $this->get_author(); ?>
                    <?php echo $this->get_date(false); ?>
                    <?php echo $this->get_commentsAndViews(); ?>
                </div>

e.g.,
http://ga-ga.com/1204/beginning-adventure-space-time-reveals-roots-doctor/

I have tried with tagdiv speedbooster on/off; I have mod_pagespeed off to ensure nothing is being cached; not using Jetpack.

This is CLEAN install of Newspaper 3.5; meaning the theme folder was uploaded as fresh folder and prior 2x folder was not over-written, so no mish-mash of old/new theme elements. No child theme being used.

Any idea why that might not be printing on page? Do I need to enable something else to cause the author byline to print on posts?

————————————

To repeat past posts as an opinion here:

“Byline” is one of the most critical things to all newspaper/magazine sites and should always appear below the title of article, or below the featured image; but typically the author and date are shown together in magazines and newspapers, so slightly annoying we still have to manually enable this EVERY update — look at TIME, or NY Times, or LA Times, or CNN, you will see the BYLINE and date top of every article. SO my big REQUEST would be to enable this by default “ON” and then let people comment it OFF which would be the exception vs the rule.

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

First template: http://pastebin.com/6tB2Tk0h
Second template: http://pastebin.com/2nP9QCzn
Combined templates: http://pastebin.com/586fMZHM

Please also note that I am using shortcodes in the templates that are used by plugins I have installed. I also set my posts to the Video format. And I have modified the child theme CSS to add a top margin to P tags using this CSS code:

.format-video p {margin-top: 21px !important; padding-top:0 !important;}

From what I can see, when the second template gets adding, it removes the blank lines surrounding the text, and WordPress doesn’t format it automatically as a paragraph because of it.

  • This reply was modified 12 years by sunkast.
london789
tagDiv Member

Thanks Marius – perfect! Please can I also ask:

1. Can this bold/link colour effect also be applied headlines of listings on Category pages ?
2. Can the headline on a post page be made bold ?
3. If the date/category captions top left of Big Slide cannot be 100% aligned can the date be removed so only category shows?

Thanks!

regmanabq
Participant
#0

After just installing the theme I’m finding some things that I think might might make it better or that I found confusing. I thought I’d drop a line and share in the hopes of making the next version even better!

1- Sidebars Organization: Organize the sidebar listing in the widget section to more accurately show their true location. IE: the top right “social” sidebar lists under the “newspaper default” one on a clean install. It might make more sense to have this sidebar listed at the top since that’s it’s true location in the layout. (it was confusing when I had a recent post widget showing up in this sidebar and displaying in the top menu. Didn’t seem intuitive that this would be a sidebar nor did the description of the sidebar really describe it’s location or purpose)

2- Widget styles – Perhaps be a bit more descriptive in style names? IE: in the social icons icon style 1 could be “full color” and style 3 “light on dark” and style 4 “dark on dark”… just makes it easier to choose styles if we have some idea other than 1,2,3..ect…

Not sure if it’s just me after toying with a few themes, but a default child theme install with demo content seems to have some inactive sidebars by default with tagdiv widgets in them. At first my “social icon” sidebar actually had a recent post widget already assigned.

IE:

Inactive Sidebar (not used)
Inactive Sidebar (not used)
This sidebar is no longer available and does not show anywhere on your site. Remove each of the widgets below to fully remove this inactive sidebar.
[tagDiv] Block 4
Inactive Sidebar (not used)
This sidebar is no longer available and does not show anywhere on your site. Remove each of the widgets below to fully remove this inactive sidebar.
[tagDiv] Popular category
Inactive Widgets
Drag widgets here to remove them from the sidebar but keep their settings.

So far awesome theme!!! Just thought I’d pass along some things I noticed as I went through the install process. If it’s not helpful tell me! LOL, otherwise I’ll add more feedback as I come across it.

scorpio85
Participant
#0

Hi,

I absolutely love the newspaper theme but i have A lot of custimization questions.

1) I wanted to change the font for the content in the post. (the content tab in the theme panel doesn’t work).

So I searched the forum and found the custom css code.. it did the job.

Now I need the custom css for the post title because if I use the same font in the post title (using the theme panel). That I use in my post content (using the custom css)

the post content changes.

So can you provide the custom css for the post title similar to this:

.post p {
font-family: ‘georgia’,!important;
font-size: 17.3px !important;
line-height: 1.45 !important;
}

2) Can you also provide the custom code to change the font on my pages (ie about page, contact page etc)

3) Is there a way to remove the colored box from the tags underneath my post titles on the homepage?

4) Lastly, is it possible to switch the sidebar/widget title (the colored box) from the left to the right?

Sorry for all of the questions…thanks for the help.

glennwpaul
Participant
#0

Hi,

How can I remove the post text and just have the title text on the homepage posts.
Please see attached:

Radu
tagDiv Staff

Hi,

to remove video support:
edit this file and add // http://screencast.com/t/wnQhn1jiiE

I can have a look at your vps if you want but I need ssh access.
My email is contact@tagdiv.com (paste a link to this post)

Radu O.

simchris
tagDiv Member

I think you can simply go to the theme customizer, and under posts, uncheck the show author box option under ‘post options’…

http://import.tagdiv.com/newspaper/doc/#theme-settings

Post settings ◦show/hide featured image
◦lightbox for featured images, or link to picture or no link
◦show/hide tags
◦show/hide author box
◦show/hide next-preview posts
◦show/hide similar articles
◦similar article type: by category, by tag, by author
◦similar article count: 2,4,6 or 8 posts
◦show/hide breadcrumbs
◦show/hide home link on breadcrumbs
◦show/hide parent category link on breadcrumbs
◦show/hide article title on breadcrumbs

simchris
tagDiv Member

Pagespeed mod test update: settings 0.4

Google Pagespeed 93/100 on main GPS Insight
page: http://ga-ga.com/1262/fiction-area-code-666-part-18-del-arton/
– google adsense – no ads for test
– addthis plugin replace social media buttons with single button ‘on’
– gravatar loaded dynamic over network for author box

todo:
1) load author image locally either with plugin, or add field to functions.php to add new user datafield, then call user meta for the field instead of gravatar code.
2) reduce server response time — typical is 0.32 seconds (320msec) up to 4 seconds; but Google now saying <200msec is the “ideal” — not sure tradeoff on optimizations for everything else; but I did see a post the other day about server tweaks to speed up “first byte” load of WordPress pages to deal with that so called “error.” Solving this would negate the penalize from Google AdSense being on.
3) super annoying “reder blocking” CSS almost “quashed” and ironically the error is from mod_pagespeed trying to fix:

Optimize CSS Delivery of the following:http://ga-ga.com/…ootstrap.css.pagespeed.cf.n0P3fhMJJz.css
http://ga-ga.com/…/A.style.css.pagespeed.cf.JAYrGYtjNo.css

– so in typical GPS fashion, one Google product complains about another Google product which is designed to fix the complaint in first place (ARGH!). This one will take some playing around with the “filters” which is where I got stuck this past weekend.

Hope this is entertaining somebody 🙂

and I forgot to mention here is the code I’m using in my htaccess file for mod_pagespeed testing, in addition to CoreFilters being on from the main .conf file at server level, eventually this would be a <directory> directive in the .conf and not in htaccess for better optimization.

<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters move_css_to_head
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters insert_dns_prefetch
</IfModule>

CHANGE to my prior htaccess code for expire headers to solve one javascript file for comments in the core wp code:

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>

I also added these to the end of the htaccess after the cache control headers, to solve the ETag problem and also the damn spammers hitting my ping script.

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

AS EVER: do not make changes to any of your files/settings unless you have backups done.
THis is all experimental at this point; when I have a solid Apache-friendly setup, I will share all the settings in all the files for those interested in this discussion. 🙂

Cheers,
Christopher Simmons
member: PRSA, ASCAP
CEO, Neotrope®
Torrance, CA, USA
(please don’t call me asking for help on anything at this point in time; I will resume my consulting biz once I have my own ducks back in a row, as it were!)

  • This reply was modified 12 years by simchris.
bpilot
Participant
#0

Hello tagDiv,

I love your theme mo much. One question please. I am trying to remove all your ads from the theme and I have searched this forum upside down and have not found any answer that works. The only screenshot you posted I have duplicated here and still the body ad is there. http://www.clipular.com/c/5727695992258560.png?k=qIl3FByCuayxX5QMxRS3TUpHMAk

Please tell me how to make them not appear. Thank you, 🙂

Marius
tagDiv Staff

Hello,
This solution that @fgrenier provided us was not tested by us, still investigate if this will doable, we know that is a nice feature but we need more time for research.

We will update the roadmap topic on the forum with what will next up in the following updates, and work in progress.

Thanks for your message,
Marius from tagDiv

Viewing 25 results - 1,926 through 1,950 (of 1,956 total)