- TutorialsDefault Block Settings Guide
Hi,
I’m currently using the ‘Style 1 – Default’ header for my test site but the logo is appearing smaller than i’d like and has a large margin to the left of it.
http://www.dynamicevents.org/test/
Ideally it would be more like the following link (but with an ad space to the right of it)
I hope you can advise?
Thanks
Hi there
The login/logout in the top header opens up a box to login. I would prefer this to go to the usual login page as I have set up a membership plugin called s2member. The page I would like it to go to when users click login is http://fantasyfootballtips.co/wp-login.php?
How do I go about doing this?
Thanks
Jason
This is done by using a text logo style instead of image (or of making an image with such a tagline). However, I notice that not all combinations exist. For example, you might not be able to get the ad and menu where you want it with a text logo. If you find this is the case, you would have to edit the PHP for the header.
There is a URL shown in page source code that returns a page with below error message. This shows as error in Google Search Console as crawlable URL without a 404.
Fatal error: Call to undefined function get_header() in /home/*****/public_html/*****/wp-content/themes/Newspaper/index.php on line 6
(function(){
var html_jquery_obj = jQuery(‘html’);
if (html_jquery_obj.length && (html_jquery_obj.is(‘.ie8’) || html_jquery_obj.is(‘.ie9’))) {
var path = ‘http://*****/wp-content/themes/Newspaper/style.css’;
jQuery.get(path, function(data) {
var str_split_separator = ‘#td_css_split_separator’;
var arr_splits = data.split(str_split_separator);
var arr_length = arr_splits.length;
if (arr_length > 1) {
var dir_path = ‘http://*****/wp-content/themes/Newspaper’;
var splited_css = ”;
for (var i = 0; i < arr_length; i++) {
if (i > 0) {
arr_splits[i] = str_split_separator + ‘ ‘ + arr_splits[i];
}
//jQuery(‘head’).append(‘<style>’ + arr_splits[i] + ‘</style>’);
var formated_str = arr_splits[i].replace(/\surl\(\'(?!data\:)/gi, function regex_function(str) {
return ‘ url(\” + dir_path + ‘/’ + str.replace(/url\(\’/gi, ”).replace(/^\s+|\s+$/gm,”);
});
splited_css += “<style>” + formated_str + “</style>”;
}
var td_theme_css = jQuery(‘link#td-theme-css’);
if (td_theme_css.length) {
td_theme_css.after(splited_css);
}
}
});
}
})();
I kept trying and did eventually get it going… I’m getting a bit of weirdness in the middle sizes though… I’d like to go with 728×90 >> 320×50 (without the 468×60) — I’ll have to play around with it a bit more I guess.
Right now I’m getting some the odd refresh with no ad served at all.
I wonder if it’s because I’ve added the main javascript into the ANALYTICS section (so it goes into the <head> instead of into the CUSTOM JAVASCRIPT section which puts the code in the footer)… maybe I should just add the script right into header.php
In this category: http://servedaily.com/category/schools/nebo-sd/
I’m using Category template 5, category top post grid 6, grid style 4,
Is that gray box able to be turned into an image?
Basically I want where the gray box is, or above it if I was too choose a different category template, to be a “Header” for the page and have custom headers for each category, is that possible?
Hello… I’m using 2 custom ads which I have inputed correctly in between contents on my front page but they dont appear. They were there last month but not visible now. I’am using the same ad on top header & footer & they appear there though. Please help.. thanks
Hi globalmediacompl,
You can try the Css below in Theme panel. With this code you can improve the main menu display but, unfortunately, there is not complete justified as you wish.
This is a complex task which requires lots of customization and if you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you as we can’t offer customization services at the moment.
.td-header-style-10 .td-header-main-menu {
padding-left: 0!important;
padding-right: 0!important;
}
.td-header-style-10 .sf-menu > li > a {
padding:0px 25px!important;
}
Hope this helps!
Thank you for your understanding!
Hello,
Unfortunately the theme does not have such an option at this moment. The only method to do it is hard-coding it. CSS is not very hard to figure out. It is better than the alternative which involves altering the PHP files and adding conditionals to td_category_template.php.
You can use css without altering core files and you can have control over it from the theme panel which is a big plus.
You can set the code Catalin gave you to apply to a specific category only. Every category has an custom class set to it. You can get this class by inspecting the category page with your browser inspector: http://screencast.com/t/5uS8nYlTc6u
For example mine is category 66. So i would add this to the beginning of the code like so:
.category-66 .td-category-header.td-image-gradient-style8 {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg');
background-repeat: no-repeat;
}
Now the code will only apply to that specific category. So if you need to use the code for another category you can simply copy and paste it and change the category number and the image.
I hope this helps.
Thank you!
Hi
You can try a plugin like this: https://wordpress.org/plugins/disable-author-pages/ but we didn’t test it with the theme and I can’t say how will work. Also you could try this code in author.php: http://screencast.com/t/0VUXzJLSGz3
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: /");
?>
Hope this help.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi,
@Healthills, please follow the same steps with single post and for category you have to use function below:
if ( ! in_category (array('cat-id','cat-id'))) { ?>
menu container
Here, http://screencast.com/t/dut2LkmLOy you can see how to find the category ID.
Please note that if you use this method and you have the sticky menu enabled: http://screencast.com/t/WwiZxvu5cfv the images won’t be displayed on that post because a js error.
@Hamzah, if you want to hide your main menu from particular page you have to use the page id that you want to hide.
Please try the code below in Theme panel->Custom Css area, like this: http://screencast.com/t/8hF2EXqv
.page-id-X .td-header-menu-wrap {
display:none;
}
Where X is your page ID. Here, http://screencast.com/t/S1qVQRbgFT you can see how to find the page ID.
For your second request, you can show different header ads in different page if you add some function in your ads.php file, like this: http://screencast.com/t/f7EsUBQq
if(is_page('page-id')){
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
}
else {
echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'header'));
}
?>
If you want to show header ads only to front page, you have to use is_front_page() function. The custom ad you can find it in Theme panel-Ads -> http://screencast.com/t/NujAwoIjF
Hope this helps and let us know how it goes!
Thanks!
Hi @acbrent25
Try this css in theme panel > custom css:
@media (min-width: 1024px){
.home .td-container, .td-header-container {
width: 1111px;
}
.home .td-pb-span8 {
width: 770px;
}}
Thanks!
Hi globalmediacompl,
You can try the code below and place it in Theme panel->Custom Css area, like this: http://screencast.com/t/wMFAyaqUrVE
.td-header-style-10 .header-search-wrap .td-icon-search {
display: none;
}
The result should see here: http://screencast.com/t/TET8m8vhq5 .
Also, for you second request, about the menu, i do not understand very good what you mean…the menu bar is
centered . Please provide more details if you want something else.
Thank you!
Hi zumaxb,
For this category style, header container are transparent and practically in this container you can see the background image. This can be set within Theme panel. There is not an easy option for it in panel to change this, sorry.
Also, another possibility for you, would be to use a bit of Css to make some customization. Please try the code below in your Theme panel->Custom Css area to fix the problem, like this: http://screencast.com/t/gtGlwFvufE
.td-category-header.td-image-gradient-style8 {
background-image: url('enter your URL image');
background-repeat: no-repeat;
}
Note: If you want to follow the above variant, please use a background color/image (white color for example)
Hope this help and let us how it goes!
Thank you!
I am using this app creator called DWNLD that pull the website feed for the app blog roll.
The problem is that the app doesnt pull featured images that are place on top of header, so I was wondering if theres any code or plugin to make sure the feed only use the featured image from the post.
Hi,
I use header styles 10. I would like to not display the icon search.
And I wish the menu was-justified to the left and right.
Thank you!
Hi there,
I want to decrease main content area width to 1000px from 1068px. Can you please let me know what’s the best way to approach this? I want to keep header and footer as it. My website URL is http://aksharwebsolutions.com/ffm/.
Your earliest response is greatly appreciated.
Thanks,
Arpita
Hi
I can’t access your post: http://screencast.com/t/Nztk4S4UDijk
You can remove the menu from a single post by editing the file corresponding with the header style used and adding this condition like here: http://screencast.com/t/Uw5VtIAtlq
<?php
if ( ! is_single('post-id')) { ?>
menu container
<?php } ?>
Replace the post-id with the post’s id for which you want to remove the menu. To get the post id follow this link: http://screencast.com/t/H6PLh7nUec
Note that if you use this method and you have the sticky menu enabled: http://screencast.com/t/WwiZxvu5cfv the images won’t be displayed on that post because a js error. To avoid that you can use this css in theme panel > custom code > custom css instead of php code: http://screencast.com/t/MGghSehQ
.postid-198 .td-header-menu-wrap {
display: none;
}
Just replace the id number with your post id.
Let me know how it goes.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi azazelka,
1)Unfortunately, our theme does not have an option for your first request. As an alternative for you, would be to use a plugin when do this thing for you. You could try to find a plugin but we cannot assure it will work because we have not tested these plugin. For instance, you should try this: https://wordpress.org/plugins/registered-users-only/ .
2)As i can see on your site, you are using header style 7. If you look on our demo preview, that white space is found there, because this is the style of this kind of header. If you do not want to have these white space, i will suggest to use other header style, (style 8 for example) like this: https://forum.tagdiv.com/header-styles/ .
If you want to modify this header style it is necessary to know a bit of CSS and HTML. You have to modify header-style-7.php file like that: http://screencast.com/t/RqVdNXwM4e . This is not a simply task and this required some customization. If you do not aware about the steps, please consider to hire a developer to do this for you.
Thank you for your understanding and let us know how it goes!
I hope this helps!
I didn’t check opengraph feature on SEO Yoast, I dunno where it comes. I have checked header.php but i didn’t find it. I also have disabled all plugins, but the code still appears.
-
This reply was modified 10 years by
flameblue59.
If you’re using YOAST SEO, be sure to turn that feature OFF in Yoast Seo.
I think you can remove most header stuff from the theme by editing the header.php, unless I am mistaken. I usually remove stuff like the pingback, myself.
Might be a function, if you don’t see it in the header.php file. But TagDiv will need to provide pointer on that.
(I don’t work here; just some feedback.)
-
This reply was modified 10 years by
simchris.
Hallo, please help!
I have been trying to solve since this early morning, but found no solution.
1. disabled all plugins one by one. The only active is your Td-speed booster because necessary
2. improved wp-config memory limit to 256M
3. checked server php error log for information but found only deprecated php notices and these:
[18-Nov-2015 15:38:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXX/public_html/wp-includes/functions.php:3457) in /home/XXXXXX/public_html/wp-includes/feed-rss2.php on line 8
then
[18-Nov-2015 16:58:39 Europe/Berlin] PHP Fatal error: Call to undefined function get_header() in /home/pittelli/public_html/wp-content/themes/Newspaper/index.php on line 6
There are no significant errors that could help.
White pages are very irregular so you can navigate without problems for a while and then get white pages!
Please any idea?
Looking forward to hear as soon as possible
Helli again,
I was looking into it right now, but there is a problem.
Please have a look at the image: http://s21.postimg.org/fpgye7suv/Post_bounderies.jpg
If you notice that blueish part. That is where this code starts :
<!– big grid –>
<div class=”td-category-grid”>
So I would say I need 1 level up? Parent template? I need it above td-category-header, have a look here:
http://s24.postimg.org/l3kzalwud/place.jpg
How do I access that part? What template or .php file would be best for that?
As I could find that is above td_category_template_2.php ?? http://s22.postimg.org/ha6d86vwh/template.jpg
—————————-
If I just add that code of yours like here: http://s23.postimg.org/w5cyqt7sr/all_Cat_Image.jpg
Nothing happens: http://s15.postimg.org/qbenoep3f/No_Image.jpg
——————————
I do really hope this images will help you understand what I am trying to do and how I can’t.
Thanks
Hi Andrei,
Thank you for your response.
I am actually trying to change the title header background in the Latest Articles section, which is currently named ‘Latest Articles’. The default colour is set to #000000 and I cannot change this in the theme panel.
How do I make changes to the template itself in the page attributes? That is the only change I would like to make.
Following from this; thank you for the ad placement. I am actually trying to place the ad above the footer as the final element of the page. I want to place an ad box at the bottom of the page but the Latest Articles section won’t allow me to post anything underneath.
Many thanks,
Dan