Search Results for 'header'

Results from the Forum
guatefutbol
Participant
#0

Hi,

Im using style 1 header and want to remove the up and down margins from the logo and ad.

I make the changes in custom css, using the inspector of firefox, everything worked, but cant change the “margin-botton: 28px” property, I want it to be 0px. It seems that this property is on another place but not in style.css.

You can see it in my site: http://www.guatefutbol.com/nw

Please help.

simchris
tagDiv Member

Also note with modern HTML and document markup, you can have more than one H1 tag in different areas of the page, such as the explicit header area and expicit article area. With modern code mark-up, HTML5, etc. all modern search engines understand the difference and there is no SEO penalty. Meaning, the H1 in the header area identifies that the logo is the primary header element related to the site vs any of the navigation links, and is primary link, such as back to home page. In the article area, the H1 must match the title for the page/post as close as possible, and should be the only H1 within the article section for best placement.

Some people freak out about this without actually exploring how modern markup works. So, in case you see this in forum search – chill, baby, chill ! 😉

Gil Poulsen
Participant
#0

Can’t seem to get this to work no matter what I try and I’ve been through a bunch of the other posts in this forum trying to find something that works. I just want to show a different ad in the header spot when the category is obituaries. With this code, no ad shows up when the obituary category page is viewed even though I have an ad in the theme settings for Adverts in the Custom Ad 1 field. Any help is appreciated, thanks!

This is my replacement for /parts/header/ads.php:

<div class=”td-header-rec-wrap”>
<?php
$tds_header_ad_title = td_util::get_option(‘tds_header_ad_title’);

// show the header ad spot
if (is_category(‘obituaries’)){
echo td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘custom_ad_1’, ‘spot_title’ => $tds_header_ad_title));
}
else
{
echo td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘header’, ‘spot_title’ => $tds_header_ad_title));
}
?>

ronkybalazs
Participant
#0

Hello

Is there any possibility to add sticky-posts to the category page header block or to any other custom block.
This is one feature I really need.

https://codex.wordpress.org/Sticky_Posts

Simion C.
tagDiv Staff

Hi,

The head tags are found in the header.php file located in the main theme folder
https://www.screencast.com/t/2i5dTKKzs
Try entering the meta you need there.

Thanks

ideasolutionssrl
Participant
#0

Hello,
it is possibile add a meta in header page?
i add my meta in a section Custom Code –> YOUR CUSTOM HTML but not insert in a <head>
In several themes I have always found <Header Code> and <Footer Code>
thanks

euw
tagDiv Member

As is had the SEO issue: Here is a small workaround (that works for me). I just added an if case, to check for the right page. Maybe it could help you too Dave. 🙂

1. get the id for your home page (in my example below 335)
2. copy the logo-h1.php in your child-theme folder (if you are using the Child Theme Feature): /Newspaper-child/parts/header/logo-h1.php
3. change the following code in logo-h1.php:

if (!empty($td_customLogoR)) { // if retina
    if($td_use_h1_logo === true) {
        if (is_page(335)) {
            echo '<h1 class="td-logo">';
        }
        else {
            echo '<div class="td-logo">';
        }
    };
    ?>
        <a class="td-main-logo" href="<?php echo esc_url(home_url( '/' )); ?>">
            <img class="td-retina-data" data-retina="<?php echo esc_attr($td_customLogoR) ?>" src="<?php echo $td_customLogo?>" alt="<?php echo $td_logo_alt ?>"<?php echo $td_logo_title ?>/>
            <span class="td-visual-hidden"><?php bloginfo('name'); ?></span>
        </a>
    <?php
    if($td_use_h1_logo === true) {
            if (is_page(335)) {
            echo '</h1>';
        }
        else {
            echo '</div>';
        }
    };
} else { // not retina
    if (!empty($td_customLogo)) {
        if($td_use_h1_logo === true) {
            if (is_page(335)) {
                echo '<h1 class="td-logo">';
            }
            else {
                echo '<div class="td-logo">';
            }
        };
        ?>
            <a class="td-main-logo" href="<?php echo esc_url(home_url( '/' )); ?>">
                <img src="<?php echo $td_customLogo?>" alt="<?php echo $td_logo_alt ?>"<?php echo $td_logo_title ?>/>
                <span class="td-visual-hidden"><?php bloginfo('name'); ?></span>
            </a>
        <?php
        if($td_use_h1_logo === true) {
            if (is_page(335)) {
                echo '</h1>';
            }
            else {
                echo '</div>';
            }
        };
    }
}

edit: I have some formatting errors here and don’t know how to do it better. You should format the code.

gbhackersonsecurity
Participant
URL Error - topic
#0

Fatal error: Call to undefined function get_header() in /home/gbhabewi/public_html/wp-content/themes/Newspaper/index.php on line 6

Getting the following Error with the URL http://gbhackers.com/wp-content/themes/Newspaper/

Please check and assist.

Artur Kot
Participant
#0

Hi!

I was trying to put in new ads on the website. I think I have deleted something important in the process…

I went to the editor-> theme header and messed something up there. Now the website looks quite terrible.

Is there a way to get the original code back?

Thanks

trcanada
Participant
#0

Hi, i would like to put my ad banner on my website (header / side / bottom).

and would like them to rotate – it can be just images, not adsense.

Do you guys have that function or any recommend plugin for this?

Thanks.

Perchpole
Participant
#0

Newspaper is a great theme but I can’t help feeling there is something missing! Why is it so difficult to show a featured image on a page? With a theme that’s as good as Newspaper, it should be easy – but with the current toolset (Composer) it’s impossible.

Why is this?

Personally, I would like to see a module like the “Homepage Post” which would allow me to show a featured image as the background and header. It looks great – so why restrict it to posts?

:0/

Perch

fredyyv
tagDiv Member

Catalin, it seems like we are running in circles here. Let’s take it back to square one. Will it help to let you know that my site is not live and if it crashes by putting the code in the wrong place it won’t matter?

I’m only asking for suggests of where to put the code in the header.php file. Forget about that fact that it hasn’t been tested. You’ve made that clear and I totally understand that. I’m only asking you to give me suggestions on where you “think” it should go. Remember you know how this theme operates. I don’t and neither does the owner of the plugin that I’m using.

So here goes…

This is the code in the header.php file:

<head>
<meta charset=”<?php bloginfo( ‘charset’ );?>” />
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php
wp_head(); /** we hook up in wp_booster @see td_wp_booster_functions::hook_wp_head */
?>
</head>

<body <?php body_class() ?> itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WebPage”>

This is the code that goes somewhere in the body tag above…

<?php do_action( ‘body_open’ ); ?>

Can you please just give me some suggestions of where it should go? Remember…I’m only asking for suggestions. I don’t care that it hasn’t been tested. Just need suggestions. If my site crashes I promise I won’t blame you. It’s not even live. So can I just get some suggestions this time please? I’d really appreciate it.

Umit GUL
Participant
#0

hi,

I uploaded the website bbpress and used the custom menu. On the other pages the menu bottom line does not appear on the bbPress menu. Is there anything I can do about it

tagdiv-menu

my website: https://sizvebiz.blog

Best regards

Inma
Participant
#0

Hi I can apply fulwith to header and footer on mi site. I can see the option Force full with on my theme panel.
https://www.screencast.com/t/amnggaNab

I dont see this section on my theme panel. Whats happen?
Thanks.

Simion C.
tagDiv Staff

Hi,

Maybe this is all a misunderstanding. If you want to have the exact same design and layout as the demo, you have to install it in the theme panel
https://forum.tagdiv.com/installing-demos/
From what I can see the demo style is not present on your website.
When you install a demo, the system will import all the theme panel settings and the custom style including the header style. The header style used is style 5 with some modifications through CSS and the theme panel.
This customized header style cannot be selected in theme panel, the demo needs to be installed in order to achieve that result.
Please remove the code my colleague provided, and simply install the demo.

Thanks

#0

Hello,

I have followed this guide –

https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/

To add new blocks and modules. However I want to replicate the layout of block 12 and 13. When I copy the code from these blocks the page only displays the header and no content.

Can anyone please advise what I am doing wrong?

Thanks,

Simion C.
tagDiv Staff

Hi,

A code like this will make the header background transparent and remove the border from the top menu, but the logo image has to be created transparent as well
https://www.screencast.com/t/gqUOyjjiUl

.td-header-style-10
.td-container-wrap {
background-color:transparent!important;
}
.td-header-style-10 .td-header-top-menu-full {
border-bottom: none;
}

If this is not what you wanted or it needs some modification, please provide additional details and I will try to give you a solution.

Thanks

Catalin
tagDiv Staff

Hello techpostz,

I guess that you want to hide your menu and top bar menu, right? If you want to achieve this, please use the code below and place it in Theme panel->Custom CSS area.

.td-header-style-7{
display:none;
}

Thanks for the message!

Catalin
tagDiv Staff

Hello saucemonsters,

For more information about our Ads implementation, please read our documentation here -> https://forum.tagdiv.com/newsmag-header-ads/ if you are using AdSense and if you are using other ads, please check here -> https://forum.tagdiv.com/newsmag-using-other-ads/

Thanks for the message!

Catalin
tagDiv Staff

Hello fredyyv,

I have read the plugin documentation and there it says that the code should have to be placed after the opening <body> tag, in header.php file, like this -> https://www.screencast.com/t/z6awfZVDYjrN Try to do this, but please notice that plugin being an untested one, we cannot say for sure if it will work or not with the theme, sorry!

Thanks for the message!

syriapress1
Participant
hello - topic
#0

i want to remove search icon from header ?

TheY
Participant
#0

Hey guys,

I used some custom CSS to make the body semi transparent. Now I would like to know how I could use a transparent header. I tried to use a .png with transparent background, but that doesn’t seem to work. Do I need to add some additional CSS make the transparent background of the png show?
This is the site > http://bit.ly/2rD5IOW. (At the moment its a jpeg not a png)

Evgeny
Participant
#0

Hi,

in our site design we have a vertical left side menu http://joxi.ru/KAgPJoignblQrl
What would be our steps in order to modify Newspaper theme to implement this vertical menu?
Should we use a child theme, or modify existing theme through API? And if use API, which block will it be, custom header style?
As we understand we need to move template’s grid for this, how we can do this?
Our menu should be also fixed, so no scroll on it while move a page down.

Second question, how we can make a blank template, for landing page for example, so no theme’s header/ footer/ background is injected in this template? As now in simple blank template we have all the theme’s settings, and cannot make any blank page we need.

Thanks 🙂

fredyyv
tagDiv Member

All that piece of code will do is load the GTA script from the plugin. All I need to know is where to put the that code in the template file where the header code is located. I understand that the plugin hasn’t been tested. That’s not what I’m asking. All I need to know from you or someone who knows anything about the theme is where in the theme file can I put this code that will load the GTA script. Since this is the forum for this theme that’s the very least someone within your support team should know.

techpostz
tagDiv Member

Hello

I am talking about top navigation bar i have installed the demo in my site but it is not that good as shown demo version. I have tried all types of navigation models in header bar. but nothing is looking like demo version…I most beautiful part i love in this demo is ..check out below images…Inline image 1 I want this type of navigation bar….i have tried changing all headers and top bars but no use..please help me exactly same top navigation bar like demo.
I dont want this type of top navigation bar…visit : http://www.techpostz.com

Viewing 25 results - 20,701 through 20,725 (of 29,850 total)