Home User profile
pbc
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
pbc
tagDiv Member

Hi, I’ve added GTM code to the theme, and created event in button properties. How I can see this event in GA? I not see it not in variables nor in data layer in GTM, so it’s not passed to GA.

GA tracking

Thanks

  • This reply was modified 3 years by pbc.
pbc
tagDiv Member

Thanks for your reply. I’ve added “td-crypto-news-menu”, as can be seen in the attached

images

Extra Class

Menu

But it still doesn’t work.

I’ve tried to track clicks on social links in the header menu, and it works fine by

using this class “tdm-social-item”

Social

What could be wrong?

Thanks

pbc
tagDiv Member

Hi, I’ve been able to add this field, following the documentation Here
I was able to add my custom block to the TagDiv Composer, and it displays the field content on the authors’ page correctly. But I have this error:

error

Here’s the code I pasted inside td_block_creative.php



<?php

class td_block_creative extends td_block {

    function render( $atts, $content = null ) {
        parent::render( $atts ); // sets the live atts, $this->atts, $this->block_uid, $this->td_query (it runs the query)

        global $tdb_state_author;
       // $author_description_data = $tdb_state_author->description->__invoke( $atts );
        $author_loop_data = $tdb_state_author->loop->__invoke( $atts );

        $buffy = ''; //output buffer

        // when no data - return empty on frontend
        if ( empty($author_loop_data['author_id'])) {
            return $buffy;
        }

        $buffy .= '<div class="' . $this->get_block_classes() . '" ' . $this->get_block_html_atts() . '>';

            //get the block css
            $buffy .= $this->get_block_css();

            //get the js for this block
            $buffy .= $this->get_block_js();

            $buffy .= '<div class="tdb-author-descr">' . get_field('additionalinfo', 'user_'. $author_loop_data['author_id'] ) . '</div>';

            $buffy .= '</div>';

        $buffy .= '</div>';

        return $buffy;
    }

}

Files: td-creative-plugin.php and style.css I left without changes. Please help me to fix this error.
Thanks

  • This reply was modified 7 years by pbc.
pbc
tagDiv Member

I just used “Featured” as an example category. When I install default demo theme, it displays all categories for the post, but when I remove demo data, it displays only one category on the single post, so how to display there all categories?
Thanks

pbc
tagDiv Member
pbc
tagDiv Member

I maybe not explained it right. I don’t use multiple templates, it’s just one template for all authors. But it 2 different layouts for author box on template page and on usual posts.
So I want to be able to set css either for template or for all posts/pages, that will be different. Here’s screenshots, of what I want.
Here what I have on post page, and I like thispost
Here what I have on author page from template, and I want to change that to same as on post page:
template

pbc
tagDiv Member

It’s good now, thank you very much.

pbc
tagDiv Member

Ok, can you give me the code, to add only text label there?
Thanks

pbc
tagDiv Member

Thanks, this helped, but I prefer to have menu items bold on all pages, and this code doesn’t help:

.home .sf-menu>li>a {
padding: 0 14px;
line-height: 48px;
font-size: 14px;
font-weight: 700;
}

pbc
tagDiv Member

I mean for future categories, as I don’t know how many and what they will be. I need to setup only 1 default color, and whenever new category created, it’s colored with default color.

Thanks

pbc
tagDiv Member

I found this solution

here

Code provided:

$buffy .= '<div class="td-authors-url">';
$last_article = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_author = %d AND post_status = 'publish' AND post_type = 'post' ORDER BY post_date DESC LIMIT 1", $td_author->ID), ARRAY_A);
$buffy .= '' . $last_article['post_title'] . '';
$buffy .= '</div>';

But in result I want few clickable links to latest article by the author.

Thanks

  • This reply was modified 7 years by pbc.
pbc
tagDiv Member

Thanks, Calin. This worked. How I add few latest articles next to the author name on page with authors box, like here?

Authors

Thanks

  • This reply was modified 7 years by pbc.
pbc
tagDiv Member

Hi, I can’t find how to setup category color same for all future categories, i.e. set it red, for all current/future categories and subcategories.

Thanks

pbc
tagDiv Member

Stretching + code did the trick.
Thank you very much, Simion. Appreciate your help.

pbc
tagDiv Member

Here

https://goo.gl/PSrSbp

Please take a look at the logo in footer also, it should be bigger, so people can see it.

Thanks

  • This reply was modified 7 years by pbc.
pbc
tagDiv Member

Hi, Simion. I’ve changed line height as suggested, but this still not enough.
I’ve added this code to css:


.td-header-wrap, .td-header-style-12,.td-header-menu-wrap-full  {
   height: 110px;

}

.td-header-style-12 .td-main-menu-logo img {
    max-height: 110px;
    margin-right: -22px;
}

And now logo looks good, but megamenu overlaps with a main menu, like here:

mega

And menu links need to place on the middle by horizontal, like here:

menu

How to fix that? Appreciate your help.
Thanks

  • This reply was modified 7 years by pbc.
pbc
tagDiv Member

I found this option, it doesn’t worked on my theme, so I reinstalled and it works. Please mark it as solved.
Thanks

pbc
tagDiv Member

I found that same logo on style 7 looks great, so tried to copy it css into Style 12, like so:



.td-header-style-12 .td-main-menu-logo img {
    max-height: 106px;
    position: relative;
    padding: 6px 0;
    line-height: 106px;
    vertical-align: middle;
}

It doesn’t work. Logo size I need – 374px x 90px

  • This reply was modified 7 years by pbc.
pbc
tagDiv Member

That’s worked, thanks

pbc
tagDiv Member

Thanks, this worked, now how to move search to the left?

search

Thanks

pbc
tagDiv Member

Hi, Calin. Can you, please point me, where to set such condition? I use CPT UI plugin, and ACF Pro.

Thanks

pbc
tagDiv Member

Thanks, Simion, your help much appreciated.

pbc
tagDiv Member

Any third party plugin I can use to achieve this layout?
Or can you point me to the file where in code this can be done?

Thanks

pbc
tagDiv Member

Great, that’s working now. Thanks Simion

pbc
tagDiv Member

This code works, but still I have this small border on hovering over this block:

border

How to remove it?

Thanks

Viewing 25 posts - 1 through 25 (of 38 total)