Search Results for 'github'

Results from the Forum
noori020
tagDiv Member

Well, that’s weird that I have to put additional short code with this theme lol. Any fix sometime soon?

I went to the link you provided, but it’s not really helping. The link mentioned on github within the link you send gives me no code and the guy asking for help seems to have problems with the help offered? Could you perhaps give me the short code and where I should place it? I have a plug in for php custom code so probably there.

Thanks for the help, I will use Revolution Slider. Never used it, but seems slick and professional.

Calin
tagDiv Staff

Hi,

Please read this topics:
What generates these very slow postmeta queries:
https://wordpress.stackexchange.com/questions/300455/what-generates-these-very-slow-postmeta-queries

WordPress database clean up queries:
-> https://gist.github.com/magnetikonline/10605567

Thank you for your understanding.

simchris
tagDiv Member

Muting is not something you can do via WordPress normally, as that is part of the video player, so you’d need to use a custom video player with option to mute video/audio. Likely need to look at a commercial plugin, or look at the audio player/video player plugins on wordpress.org in the plugin repository.

WP actually uses the mediaplayer.js library, so you have to include some kind of custom code for that …

discussion on audio volume topic here (this is related to playing audio, not video, but may be related from same library):
https://github.com/mediaelement/mediaelement/issues/2449

presumably you’ll need to do something like
startVolume: 0
via the javascript options.

Good luck!

Simion C.
tagDiv Staff

Hi,

You could try some other solutions if that does not work with our theme. This seems to work
https://gist.github.com/ccurtin/6491e5132bc57f6cf979

Thanks

simchris
tagDiv Member

Theme does not control sending email. Just as heads up to those new to WP.
Email sent via WP by default goes via sendmail, or out via authenticated email via an actual account on server via correct port. However, this may require the plugin to ‘ping’ the account first before send, which may not work.

Another issue, is that if the email test from the plugin *does work* and you’re sending an email form from your website to @gmail, it might be going to the spam folder at the gmail account so never seen.

ABOUT WP Mail SMTP:
We went through this recently after server update and WP updates.

Suddenly, the latest version of ‘WP Mail SMTP’ would no longer work. All email tests would fail. (One presumes you are testing the email send option from plugin?) — we had to go back to 1.25 vs 1.3x — and that works. So, you may need to try different SMTP plugins to see which one *actually* works with your server.

Not sure that helps — but the SMTP plugin we’d been using since June 2016 stopped working Summer 2018, and we had to roll back to the prior version as “new version” simply did not work with WP forms, or with WooCommerce.

Upshot – if v 1.3 does not work, try to find 1.25 which does work.
Stupid I know, but we would have issue where one email test would work, then actual emails from form would not. Almost like our own server was blocking the plugin, so something changed from 1.25 to 1.3x.

Seriously, we’re running latest CentOS, Apache, https, http/2 and PHP 7.2x, no go with 1.3x but 1.25 works on two sep installs.

Try older version from github:
https://github.com/awesomemotive/WP-Mail-SMTP

https://github.com/awesomemotive/WP-Mail-SMTP/releases/tag/1.2.5

Try it 😉

Calin
tagDiv Staff

Hi nguyenxuan,

Unfortunately our theme don’t have such an option, it can be done with custom css, but that require a lot of time ( you need to do for each menu item ).

Examples for custom css:
with icon in menu
https://www.screencast.com/t/KJyJVGXS
https://www.screencast.com/t/cQYNGoMX4e1

Using text:
https://www.screencast.com/t/puj9MRrpy
Documentation bubbly : https://leaverou.github.io/bubbly/
https://www.screencast.com/t/NpN9oMZp

Thank you for your understanding.

mgargano
Participant
#0

I manage my source code using composer (getcomposer.org) and to this i need direct access to the source for the two plugins Tag Div Composer and Tag Div Social Counter — is there any way I can programatically access them? i.e. github or something similar?

Thanks,
Mat

Catalin
tagDiv Staff

Hello avinashiitd,

Unfortunately, our theme does not have any support for this type of tracking for AMP, but only for Google Analytics, sorry! Notice that you can implement yourself this feature through the code. Please check the following documentation from here -> https://github.com/ampproject/amphtml/commit/7fda898271eb06f8633e5730ab07492890886e29 and from here -> https://www.ampproject.org/docs/analytics/analytics-vendors#vendors
Also, if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom services at the moment, sorry!

Thanks for your understanding!

ChrisB
Participant
#0

The Newspaper theme is one of the most popular WordPress themes and Disqus is one of the most popular WordPress commenting plugins, but the two don’t work together. Please add an option to use Disqus instead of the built-in WordPress comments.

I’ve edited td_module.php and td_module_single_base.php to add Disqus support, but my changes will be overwritten with the next theme update. Please add native support for Disqus to the Newspaper theme. Here is a code example that is working for me and can be used to help you get started:

includes/wp_booster/td_module.php

https://gist.github.com/ChrisBegley/a87c775e19903944b4f9c7d06efdfcf1


function get_comments() {
        $buffy = '';
        if (td_util::get_option('tds_m_show_comments') != 'hide') {
            $buffy .= '<div class="td-module-comments">';
            $buffy .= '<a href="' . $this->href . '#disqus_thread">';
            $buffy .= get_comments_number($this->post->ID);
            $buffy .= '</a>';
            $buffy .= '</div>';
        }

        return $buffy;
    }

includes/wp_booster/td_module_single_base.php

https://gist.github.com/ChrisBegley/7bfc66d9b3c84849936f3a65bd3e1c4c


function get_comments() {
        $buffy = '';
        if (td_util::get_option('tds_p_show_comments') != 'hide') {
            $buffy .= '<div class="td-post-comments">';
			$buffy .= '<i class="td-icon-comments"></i>';
            $buffy .= '<a href="' . $this->href . '#disqus_thread">';
            $buffy .= get_comments_number($this->post->ID);
            $buffy .= '</a>';
            $buffy .= '</div>';
        }

        return $buffy;
    }
reatlat
tagDiv Member

@alecaus yes for sure if you edit theme files and after you update theme you can lose all your edits(features)

Just create a simple plugin
use this example https://gist.github.com/reatlat/cd19243846a60ce531bb325d46013af1

Just create a folder simple-plugin in wp-plugins
and create one php file like you saw in Gist

Place any functions inside, and activate plugin.

reatlat
Participant
#0

Will be great to have Github icon set for social network
TY

Simion C.
tagDiv Staff

Indeed, they seem to have added iPad devices in the list of mobile browsers as a fix
https://github.com/Automattic/wp-super-cache/pull/525
I couldn’t say if something can be done about this however.
https://www.screencast.com/t/qm7yd3QuAcm
Unless maybe you can use an older plugin version, the plugin will serve the mobile theme to iPads from now on.

Simion C.
tagDiv Staff

Those would be the theme internal fonts, these are used for various theme elements, such as the socials and menu for example
https://www.screencast.com/t/FUVkHDPOtfr
But the font seems to not load properly. Maybe your hosting provider could provide some details about this, as to why the theme fonts cannot be decoded
https://www.thewebflash.com/set-the-correct-mime-types-for-woff-fonts-in-your-web-server/
https://github.com/fontello/fontello/wiki/How-to-setup-server-to-serve-fonts

In some cases the icons are replaced by other characters even
https://forum.tagdiv.com/topic/strange-chinese-symbols-replaced-icons-and-arrows/

alifewithfaith
tagDiv Member

i’m gonna jump inline w/ this thread instead of opening a new topic b/c it seems like these are all a bit related…….

Bogdan, if you’ve got an Amazon account, you can find the ad’s instructions here:
https://affiliate-program.amazon.com/home/ads
Basically, it’s just a simple copy/paste for the ad.

Here, take mine and use it as an example:
https://gist.github.com/BurlesonBrad/b58b9fb1e6f7e9548c4e883b97a23b83

<script type="text/javascript">
amzn_assoc_placement = "adunit0";
amzn_assoc_search_bar = "true";
amzn_assoc_tracking_id = "allinfaith-20";
amzn_assoc_ad_mode = "manual";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_title = "Click & Read the Descriptions For These Books";
amzn_assoc_linkid = "e7195d610f69c403a304838e7e14a7ea";
amzn_assoc_asins = "1250026261,0307731871,0307731898,0997829087";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/onejs"></script>

First let’s see that on the Newspaper site:https://alifewithfaith.com/independent-fundamentalist/

Ok, so we can see the ad code being displayed when we view source on that page, right?

However, when we Inspect Element, and click on the red errors on the left side of the inspect element screen in Chrome, we find this:


onejs?MarketPlace=US:1 Error : adType is not defined
render @ onejs?MarketPlace=US:1

So, we can now go blame Amazon, right? Ha! Not so fast 😉

If we switch the theme, stick it on our personal site, or even run over to another totally different URL, and use the exact same Ad code from the Gist file to copy/paste it into a post. Guess what: The ads start to appear.

Bogdan (or anyone/everyone else) feel free to use the code in that gist to test it out on another theme b/c the exact same code, simply copy/pasted into another theme does indeed show the ads.

https://prnt.sc/j7zbbs

So, here’s the file from Amazon that will cough up those Ads that we’re all wanting:
https://z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US

The exact same code, pasted into another theme, works.
I think something, somewhere in the Newspaper theme might be causing that javascript file from Amazon to throw an error.

reatlat
Participant
#0

Is it possible add to copyright subfooter option to add current year or start year or support for sortcodes?
Like on screenshot
copyright year in subfooter

But idea is, I will add the start year and if current year not same show startYearcurrentYear

automatic-copyright-year.php


<?php
/**
* Automatic copyright year
*
* @link https://css-tricks.com/snippets/php/automatic-copyright-year/
*/
function autoCopyrightYear($year = 'auto') {
if(intval($year) == 'auto'){ $year = date('Y'); }
if(intval($year) == date('Y')){ echo intval($year); }
if(intval($year) < date('Y')){ echo intval($year) . ' - ' . date('Y'); }
if(intval($year) > date('Y')){ echo date('Y'); }
}

Amit
tagDiv Member

Hi @simion

I have tried this. To get this work you need to add the script to the site then you must embed GitHub code with amp tags this doesn’t display embedded code on the normal page.

And there is no dedicated AMP editor to modify code just for AMP.

Even making preformatted text responsive will help.

I tried this –
.pre {
white-space: pre-wrap;
}

This auto adjusts the preformatted text on the small display.

Do you have a better solution than this?

Amit
Participant
#0

Hello team,

Is there a possible way to show GitHub embedded code on Newspaper AMP?

madworks
tagDiv Member

we tried enabling and disabling but that did not help …

we did find this post https://stanko.github.io/ios-safari-scoll-position-fixed/ that discribes the same issue we are having but don’t know where we should add this

Simion C.
tagDiv Staff

Hi,

The theme by itself does not have an auto-update option, that is done through an Envato provided plugin
http://envato.github.io/wp-envato-market/
https://forum.tagdiv.com/how-to-update-the-theme-2/
That is a plugin provided by Envato which can be used for other themes as well, not specific to theme.

Thanks

Bogdan B.
tagDiv Staff

Hello,

It seems forms require a specific implementation for amp. Here is a response from the WordPress developers on github: https://github.com/Automattic/amp-wp/issues/802

Thanks.

menneskedyr
Participant
#0

I know that AdRotate is not officially supported with Newspaper, but many of us use it.

Has anyone perhaps figured out how to use it with WP Super Cache?

What about this code? https://gist.github.com/Slaver/0e0c7c952caf0d309b4e

reatlat
tagDiv Member

@neotrope Yes, I know, but I’m Arch Linux user! I always use latest stable version!
I think it’s better way to keep code not hackable,

Just fix it on theme and td-social-counter plugin
using this solution =)
https://stackoverflow.com/questions/39666228/how-to-rewrite-an-example-without-the-use-of-create-function

If authors has interest, I can share it via GitHub =)

  • This reply was modified 8 years by reatlat.
angelgallegos
Participant
#0

Hi there,

I do not know if this is the correct way to suggest new improvements to the them, but here I go:

– Better Search bar: In desktop, the search is too small and it could be better a full screen search (like in mobile) and like many websites do. Example: https://pitchfork.com/

– Hamburger Desktop menu: A lot of webs have this feature. You can show the post title as you scroll in the menu and show only website logo and a hamburger menu to open all links, or just show big logo centered. Example: https://www.nytimes.com/2018/02/01/theater/come-from-away-sankoff-hein-grammy-awards.html?hpw&rref=theater&action=click&pgtype=Homepage&module=well-region&region=bottom-well&WT.nav=bottom-well

– Auto Load Next Post. MUST. This is a big thing nowadays for publishers. This could work: https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/issues/85

Thanks in advance.

morebusiness
tagDiv Member

My site sits behind Cloudflare as well. The style sheet does *not* minify completely with their auto-minify option. Very early into the file, cloudflare detects some kind of error and stops minifying. Their tech support says that they stop once they detect any form of error and suggest running the file through a validator. I do not know what “level” of CSS to validate against for their minifier to work, but I haven’t found a validator setting that likes the style.css file.

You can see it failing at https://www.morebusiness.com/wp-content/themes/Newspaper/style.css?ver=8.6

The first screen or two are minified, then it reverts back to the original.

In any case, I have successfully used https://css.github.io/csso/csso.html to minify it. I have my child theme load the minified version directly rather than overwriting the original.

n.lazzati
tagDiv Member

Hi Waves. Sorry for the delay. Yes I found a solution. I install DFP – DoubleClick Ad Manager plugin and an extension to manage background automatic ADV from doubleclick. Unfortunately the autor of the plugin close his website. By the way i found the page with the download in the internet archive. You can reach the tutorial here If you can’t load the webpage contact me, i will send you the HTML that i have downloaded.

This is the plugin

To match this AD to Doubleclick create a new Creative model then click to import and use this code To paste this code create a new file without and extension and upload it to doubleclick.

For help feel free to contact me again

Viewing 25 results - 126 through 150 (of 336 total)