Search Results for 'header'

Results from the Forum
dzjoke
Participant
#0

Right here I copied the code from td_module_single.php (includes/modules/td_module_single.php) *I’m not a programmer to understand all of that*

<?php

/**
* Class td_module_single
*/

class td_module_single extends td_module_single_base {

function get_social_sharing_top() {
if (!$this->is_single) {
return;
}
if (td_util::get_option(‘tds_top_social_show’) == ‘hide’ and td_util::get_option(‘tds_top_like_show’) != ‘show’) {
return;
}

$buffy = ”;
// @todo single-post-thumbnail appears to not be in used! please check
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $this->post->ID ), ‘single-post-thumbnail’ );

$buffy .= ‘<div class=”td-post-sharing-top”>’;
if( td_util::get_option(‘tds_top_like_show’) == ‘show’ && td_util::is_amp() === false ) {
$buffy .= ‘<div class=”td-post-sharing-classic”>’;
$buffy .= ‘<iframe frameBorder=”0″ src=”‘ . td_global::$http_or_https . ‘://www.facebook.com/plugins/like.php?href=’ . $this->href . ‘&layout=button_count&show_faces=false&width=105&action=like&colorscheme=light&height=21″ style=”border:none; overflow:hidden; width:105px; height:21px; background-color:transparent;”></iframe>’;
$buffy .= ‘</div>’;
}

if (td_util::get_option(‘tds_top_social_show’) != ‘hide’) {
$share_text_show = false;
if (td_util::get_option(‘tds_top_like_share_text_show’) == ‘show’) {
$share_text_show = true;
}

if ( td_util::is_amp() ) {
$enabled_services = td_api_social_sharing_styles::_helper_get_enabled_socials();
$amp_services = array_slice( $enabled_services, 0, 5);

$buffy .= td_social_sharing::render_generic(array(
‘services’ => $amp_services,
‘style’ => ‘style1’,
‘share_text_show’ => false,
‘el_class’ => ”
), ‘td_social_sharing_article_top’);
} else {
$buffy .= td_social_sharing::render_generic(array(
‘services’ => td_api_social_sharing_styles::_helper_get_enabled_socials(),
‘style’ => td_options::get(‘tds_social_sharing_top_style’, ‘style1’),
‘share_text_show’ => $share_text_show,
‘el_class’ => ”
), ‘td_social_sharing_article_top’);
}
}
$buffy .= ‘</div>’;

return $buffy;
}

function get_social_sharing_bottom() {
if (!$this->is_single) {
return;
}
if (td_util::get_option(‘tds_bottom_social_show’) == ‘hide’ and td_util::get_option(‘tds_bottom_like_show’) == ‘hide’) {
return;
}

$buffy = ”;
// @todo single-post-thumbnail appears to not be in used! please check
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $this->post->ID ), ‘single-post-thumbnail’ );

$buffy .= ‘<div class=”td-post-sharing-bottom”>’;

if( td_util::get_option(‘tds_bottom_like_show’) != ‘hide’ && td_util::is_amp() === false ) {
$buffy .= ‘<div class=”td-post-sharing-classic”>’;
$buffy .= ‘<iframe frameBorder=”0″ src=”‘ . td_global::$http_or_https . ‘://www.facebook.com/plugins/like.php?href=’ . $this->href . ‘&layout=button_count&show_faces=false&width=105&action=like&colorscheme=light&height=21″ style=”border:none; overflow:hidden; width:105px; height:21px; background-color:transparent;”></iframe>’;
$buffy .= ‘</div>’;
}

if (td_util::get_option(‘tds_bottom_social_show’) != ‘hide’) {
$share_text_show = false;
if( td_util::get_option(‘tds_bottom_like_share_text_show’) == ‘show’ ) {
$share_text_show = true;
}

if ( td_util::is_amp() ) {
$enabled_services = td_api_social_sharing_styles::_helper_get_enabled_socials();
$amp_services = array_slice( $enabled_services, 0, 5);

$buffy .= td_social_sharing::render_generic(array(
‘services’ => $amp_services,
‘style’ => ‘style1’,
‘share_text_show’ => false,
‘el_class’ => ”
), ‘td_social_sharing_article_bottom’);
} else {
$buffy .= td_social_sharing::render_generic(array(
‘services’ => td_api_social_sharing_styles::_helper_get_enabled_socials(),
‘style’ => td_options::get(‘tds_social_sharing_bottom_style’, ‘style1’),
‘share_text_show’ => $share_text_show,
‘el_class’ => ”
), ‘td_social_sharing_article_bottom’);
}
}

$buffy .= ‘</div>’;

return $buffy;
}

}

Guys need your help

ermannaro
Participant
#0

I’ve select header style 10 and the menu should be centered.
Instead it is displayed aligned to the left. As for the style 9 …
Maybe because the menu is on two rows?

How can I force the centering via css?

and how change color of menù line?

see image

https://www.awesomescreenshot.com/image/3875767/2ffb9af4019ccb85f7e3923265259bc8

tnx

shariful_hamid
tagDiv Member

Dear Catalin,

Thanks for your reply. At first, I am using the latest version of theme 9.5. And I have the following:

Active plugins 6 items:
1) Google Captcha (reCAPTCHA) by BestWebSoft (Version 1.41) ; By BestWebSoft
2) Regenerate Thumbnails (Version 3.1.0) ; By Alex Mills (Viper007Bond)
3) tagDiv Cloud Library (Version 1.0 BETA) ; By tagDiv
4) tagDiv Composer (Version 2.3) ; By tagDiv
5) tagDiv Social Counter (Version 4.5) ; By tagDiv
6) WP Super Cache (Version 1.6.4) ; By Automattic

In Must-Use tab there is one plugin
1) Endurance Page Cache (Version 1.3) ; By Mike Hansen

In Drop-ins tab there is one plugin
1) advanced-cache.php ; details are not available

I could register as a test contributor (ID: shariful_hamid) from header’s top bar but when I tried from there it shows, “User or password incorrect!”. Whereas, I can login using same id & password from amrai71.com/wp-admin.

Please help me in this regard.

My URL:
http://amrai71.com/

tesshirek
Participant
#0

Dear Support,

please help me to solve the following issue:

When I refresh Newspaper theme to v9.5 I realized these problems:

Notice: Trying to get property of non-object in /public_html/wp-content/themes/Newspaper/includes/wp_booster/td_util.php on line 50

Notice: Undefined variable: tdc_header_template_id in /public_html/wp-content/themes/Newspaper/includes/wp_booster/td_util.php on line 187

This issue appeared only on these pages: https://tess.hu/category/ and https://tess.hu/category/tesstippek/

How can I solve it?

I am looking for your reply.

BR,
Janos

sashos
tagDiv Member

The plugin is active, but I still cannot edit anything from the header, if it’s not imported via this new Header Manager.

sashos
tagDiv Member

Hi,

How can I change the size for the existing header (without importing header templates)?

Thanks

Catalin
tagDiv Staff

Hi,

Check the header builder option for the sticky menu on mobile from here -> https://www.screencast.com/t/CIgdO17vLrYd

Thanks for the message!

Simion C.
tagDiv Staff

From what I know Bogdan re-added the empty page template which should now work as before, a test page here – https://desdelaraiz.com/tagtiv-test-page-landing-page/

So for the pages you want to have no header and footer, edit them and set that page template. You can remove the header from the header manager section in the composer.

Simion C.
tagDiv Staff

Hi,

I tried it within a cloud headerhttp://prntscr.com/mn7ua4http://prntscr.com/mn7uim
Seems to work, something like you are describing would happen if the font awesome plugin is not active.

Thanks

Simion C.
tagDiv Staff

Hi,

Maybe you are using one of header styles 9, 10 or 11, these can display a text logo
http://prntscr.com/mn6dtl
So if there is no image logo, the text logo will show.

The font settings for the text logo are here – http://prntscr.com/mn6ta6

Thanks

Calin
tagDiv Staff

Hi,

Please try this custom css
-> https://www.screencast.com/t/9HjUKngF9tuL
.td-header-style-10 .td-header-gradient::before {
height: 5px;
position: absolute;
bottom: 0;
background-color: #339990;
}
.td-header-style-10 .sf-menu > li > a::after {
height: 100%;
z-index: -1;
background-color: #303030;
}
.td-header-style-10 .sf-menu > .td-menu-item > a {
margin-bottom: 5px;
}
.td-header-wrap .td-header-menu-wrap-full {
background-color: #339990;
}
.sf-menu ul .td-menu-item > a {
color: black;
}
.td-header-menu-wrap.td-affix {
background-color: #339990;
}
.sf-menu ul .td-menu-item > a {
color: black!important;
}
.td-header-style-10 .header-search-wrap .td-icon-search,
.sf-menu > li > a ,
.sf-menu a:active, .sf-menu a:hover {
color: white;
}
.td-header-style-10 .header-search-wrap .td-drop-down-search {
border-color: #e9e9e9;
border-width: 0 1px 1px;
border-style: solid;
box-shadow: none;
}
.td-header-style-10 .header-search-wrap .td-drop-down-search:before {
border-color: transparent transparent #009688;
}
.td-header-style-10 .header-search-wrap .td-drop-down-search:after {
top: -5px;
height: 5px;
background-color: #009688;
}

Thank you for your understanding!

Simion C.
tagDiv Staff

Hi,

There are currently some issues we are investigating with the cloud header builder and manager.

It would be helpful if you could provide detailed steps describing what exactly you did before the issue happened. We will try and recreate the issue on our end. Please let us know.

Thanks

Catalin
tagDiv Staff

Hi,

Try to use the Header builder to customize your header/logo section as you wish. Please check our documentation from here -> https://tagdiv.com/newspaper-theme-customize-the-header-manager/

Thanks.

baamit
tagDiv Member

Wohooo!!!

Finally found a solution. It was simple but strange. Thought it would be interesting for everyone to know. The Header Manager button doesn’t appear unless and until you install the tagDiv Cloud Library.

This is really strange as the new features forcefully demand to install Cloud Library.

Anyway, Cheers !!!

Calin
tagDiv Staff

Hi,

This can be achieve using header builder and edit/build a menu after your needs -> https://tagdiv.com/whats-new-in-newspaper-theme-9-5-update/
or you can use custom css -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
-> https://www.screencast.com/t/xczr10qfu
body {
margin-top: 25px;
}

You can set the code in Newspaper>theme panel>Custom code>Custom css

Thank you

David
Participant
#0

Hi, How to enable smart-snap for the mobile menu if the header is created through a cloud library template?

Calin
tagDiv Staff

Hi,

Please note that the tagDiv Header builder is part of tagDiv Cloud Library, that is why you need to have it installed.
-> https://tagdiv.com/whats-new-in-newspaper-theme-9-5-update/

Thank you for your understanding!

imc67
tagDiv Member

Hi Simion,

thanks for your response. I was really hopeful with your answer because we do use the child theme, however …. the used child theme files in your package are not changed in years and I didn’t add header.php.

So the “one million dollar question”: What now?

Simion C.
tagDiv Staff

1. Thank you for mentioning it, I will make a note of it.

2. Regarding the footer there should be a solution provided by my colleague Bogdan in the email conversation.

Sorry for all these inconveniences, it was decided by our developer team to remove this page template, there will be an option for the footer as well, just like for the header, to remove it for specific pages.

Calin
tagDiv Staff

Hi,

Please try this and see if this is working
-> https://www.screencast.com/t/fQUQkBMQKrm
-> https://www.screencast.com/t/ymGdm8AR
Header Builder -> https://tagdiv.com/whats-new-in-newspaper-theme-9-5-update/
If there is still a problem please provide some more details and some screenshots.

Thank you!

David
Participant
#0

Hi, some of my menus do contain icons from font awesome for menus. If I create a header with tagdiv cloud libary, these icons are not displayed in frontend (broken icon/ square)

Simion C.
tagDiv Staff

@all Please see this topic – https://forum.tagdiv.com/topic/after-updating-to-version-9-5-the-site-does-not-work/

If you use a child theme and copied the header.php file in it, note that the file has been modified by us in the latest update. Re-copy it from the main theme and redo your modifications or code additions. Serving the old file from a child theme can create issues. Let us know if there are still problems.

Rakesh_121
Participant
#0

after remove the header logo ( image ), there was a text comes out and this is my website name.

but this is too big, i want to change the size of the text please help.

image here :- https://www.screencast.com/t/Yjydk63bI

Simion C.
tagDiv Staff

Hi,

I don’t quite understand what exactly is the problem here. So you have added an ad box in the header on desktop and it is working. On mobile mode you can do the same, with an ad box so there shouldn’t be any issues
http://prntscr.com/mn0uzt
If I misunderstand the problem let me know.

Thanks

Viewing 25 results - 15,626 through 15,650 (of 29,850 total)