plugins – Image path in childs theme

I hope you can help me. How do I have to change the file path to get an specific image from my upload folder in my plugin/shortcode?
I have added the following lines to my childs theme – functions.php but it doesn’t work.

add_shortcode( 'webcamtime', 'webcamtime_timestamp' );
function webcamtime_init (){
    function webcamtime_timestamp() {
        $file = '/wp-content/uploads/webcam/webcamimage.jpg';
        $filename = basename($file);
        if (file_exists($filename)) {
            return "Last modified: " . date ("F d Y H:i:s.", filemtime($filename));
 }
}
}
add_action('init', 'webcamtime_init');

Thank you in advance!!

theme development – How to dynamically set a background image with the customizer without putting the css as an inline-style

Here is what I am using currently,

<div class="home-header" style="background-image:url('<?php echo get_theme_mod( 'home-header-img' ); ?>'); height: 500px; width: 100%; display: flex; justify-content: center; align-items: center; background-repeat: no-repeat">

I have the background-image being set by the customizer and it’s working great however I am unable to have inline styles due to the ThemeForest theme standards. What should I be doing here? or is there a better way to go out this? thanks

What is best website Theme for IT Industry? [closed]

I have a website -> Info Stans. I want to update my website theme please suggest any IT Industry Suitable and attractive theme for my Company.

Here is my company URL -> https://infostans.com/

theming – Theme a subscriber field in Simplenews issues

I need to address my subscribers in a more personal way. Thus I added fields for Mr./Mrs., firstname, lastname to the subscription block, and data gets collected nicely.
However, I can’t see how to theme these fields in simplenews-newsletter-body.html.twig.

In the header of this template there’s an example printing the subscriber’s (built-in) mail.

 {{ simplenews_subscriber.getMail  }}

Trying the same as {{ simplenews_subscriber.field_lastname }} doesn’t do anything. I tried a lot of variations to this approach, but to no avail.

What’s the secret of getting custom subscriber fields to print with Twig?

theme development – Warning: printf(): Too few arguments in helpers.php file

So I’m getting the following error Warning: printf(): Too few arguments in /lib/helpers.php on line 34

So line 34 is 'class' => ()

// Define the read more url
function read_more_url() {

    // Grab the posts link and title
    echo '<a href="' . esc_url(get_the_permalink()) . '" title="' . the_title_attribute(('echo' => false)) . '">';

    printf(
        // Filters text content and strips out disallowed HTML
        wp_kses(
            __('Read more <span class="u-screen-reader-text">about %s</span>', 'Sema'),
            (
                'span' => (
                    'class' => ()
                )
            )
        )
    );
}

Could someone tell me what I might be doing wrong? The echo is working correctly.

plugins – How can I override woocommerce template files in my custom theme?

I am trying to override woocommerce template files in my custom theme by copying the /templates folder with all the files in it into my theme and changing the folder name to /woocommerce, the override is working well when i added shortcodes like the [products] shortcode, but the problem is some pages didn’t load the woocommerce css styles from the /woocommerce/assets folder like the “single product page” for example can anyone give me a hint about this problem.

Thanks in advance.

Set menu position why theme inactive

I need to switch a theme to it’s copy with some modifications, but when I do so, the position of the menus need to be selected again. There must be a way to set this in tha database while the theme is inactive, so that switching a theme is smooth.

javascript doesn’t work with a specific theme

i have a javascript that works with every theme except mine. i have bought my theme from theme forest. it is original and i payed for it.
here is my html

<select name="state" onChange="abood(this.value);">
    <option value="0">لطفا استان را انتخاب نمایید</option>
    <option value="1">تهران</option>
    <option value="2">گیلان</option>
    <option value="3">آذربایجان شرقی</option>
</select>
<select name="city" id="city">
    <option value="0">لطفا استان را انتخاب نمایید</option>
</select>

and here is my js

function abood(state){
with(document.getElementById('city')) 
{
    options.length = 0;

    if(state == 0)
    {
        options(0) = new Option('لطفا استان را انتخاب نمایید' , '0');
    }
    
    if(state == 1)
    {
        options(0) = new Option('لطفا شهر را انتخاب نمایید' , '0');
        options(1) = new Option('احمدآبادمستوفي' , '33131');
        options(2) = new Option('ادران' , '31541');
        options(3) = new Option('اسلام آباد' , '18641');
        options(4) = new Option('اسلام شهر' , '331');
        options(5) = new Option('اكبرآباد' , '37671');
        options(6) = new Option('اميريه' , '39861');
        options(7) = new Option('انديشه' , '31686');
        options(8) = new Option('اوشان' , '33431');
        options(9) = new Option('آبسرد' , '39761');
        options(10) = new Option('آبعلي' , '39741');
        options(11) = new Option('باغستان' , '33541');
        options(12) = new Option('باقر شهر' , '18131');
        options(13) = new Option('برغان' , '33631');
        options(14) = new Option('بومهن' , '16551');
        options(15) = new Option('پارچين' , '33971');
        options(16) = new Option('پاكدشت' , '3391');
        options(17) = new Option('پرديس' , '16581');
        options(18) = new Option('پرند' , '37611');
        options(19) = new Option('پس قلعه' , '19731');
        options(20) = new Option('پيشوا' , '3381');
        options(21) = new Option('تجزيه مبادلات لشكر  ' , '1012');
        options(22) = new Option('تهران' , '1');
        options(23) = new Option('جاجرود' , '16531');
        options(24) = new Option('چرمسازي سالاريه' , '18361');
        options(25) = new Option('چهاردانگه' , '33191');
        options(26) = new Option('حسن آباد' , '18331');
        options(27) = new Option('حومه گلندوك' , '33411');
        options(28) = new Option('خاتون آباد' , '33991');
        options(29) = new Option('خاوه' , '33841');
        options(30) = new Option('خرمدشت' , '16571');
        options(31) = new Option('دركه' , '19841');
        options(32) = new Option('دماوند' , '3971');
        options(33) = new Option('رباط كريم' , '3761');
        options(34) = new Option('رزگان' , '37561');
        options(35) = new Option('رودهن' , '39731');
        options(36) = new Option('ري' , '1813');
        options(37) = new Option('سعيدآباد' , '33361');
        options(38) = new Option('سلطان آباد' , '37631');
        options(39) = new Option('سوهانك' , '19561');
        options(40) = new Option('شاهدشهر' , '33561');
        options(41) = new Option('شريف آباد' , '33941');
        options(42) = new Option('شمس آباد' , '18341');
        options(43) = new Option('شهر قدس' , '3751');
        options(44) = new Option('شهرآباد' , '33551');
        options(45) = new Option('شهرجديدپرديس' , '16561');
        options(46) = new Option('شهرقدس(مويز)' , '37511');
        options(47) = new Option('شهريار' , '3351');
        options(48) = new Option('شهرياربردآباد' , '33511');
        options(49) = new Option('صالح آباد' , '33171');
        options(50) = new Option('صفادشت' , '31641');
        options(51) = new Option('فرودگاه امام خميني' , '18381');
        options(52) = new Option('فرون آباد' , '18471');
        options(53) = new Option('فشم' , '33451');
        options(54) = new Option('فيروزكوه' , '3981');
        options(55) = new Option('قرچك' , '18686');
        options(56) = new Option('قيام دشت' , '18661');
        options(57) = new Option('كهريزك' , '18161');
        options(58) = new Option('كيلان' , '39751');
        options(59) = new Option('گلدسته' , '33151');
        options(60) = new Option('گلستان (بهارستان)' , '37571');
        options(61) = new Option('گيلاوند' , '39711');
        options(62) = new Option('لواسان' , '3341');
        options(63) = new Option('لوسان بزرگ' , '33461');
        options(64) = new Option('مارليك' , '37541');
        options(65) = new Option('مروزبهرام' , '33141');
        options(66) = new Option('ملارد' , '31691');
        options(67) = new Option('منطقه 11 پستي تهران' , '1011');
        options(68) = new Option('منطقه 13 پستي تهران' , '1013');
        options(69) = new Option('منطقه 14 پستي تهران' , '1014');
        options(70) = new Option('منطقه 15 پستي تهران' , '1015');
        options(71) = new Option('منطقه 16 پستي تهران' , '1016');
        options(72) = new Option('منطقه 17 پستي تهران  ' , '1017');
        options(73) = new Option('منطقه 18 پستي تهران  ' , '1018');
        options(74) = new Option('منطقه 19 پستي تهران  ' , '1019');
        options(75) = new Option('نسيم شهر (بهارستان)' , '37651');
        options(76) = new Option('نصيرآباد' , '37551');
        options(77) = new Option('واوان' , '33176');
        options(78) = new Option('وحيديه' , '33581');
        options(79) = new Option('ورامين' , '3371');
        options(80) = new Option('وهن آباد' , '18391');
    }
    if(state == 2)
    {
        options(0) = new Option('لطفا شهر را انتخاب نمایید' , '0');
        options(1) = new Option('احمد سرگوراب' , '43591');
        options(2) = new Option('اسالم' , '43891');
        options(3) = new Option('اسكلك' , '44681');
        options(4) = new Option('اسلام آباد' , '43371');
        options(5) = new Option('اطاقور' , '44791');
        options(6) = new Option('املش' , '44951');
        options(7) = new Option('آبكنار' , '4331');
        options(8) = new Option('آستارا' , '4391');
        options(9) = new Option('آستانه اشرفيه' , '4441');
        options(10) = new Option('بازاراسالم' , '43731');
        options(11) = new Option('بازارجمعه شاندرمن' , '43811');
        options(12) = new Option('برهسر' , '44561');
        options(13) = new Option('بلترك' , '44941');
        options(14) = new Option('بلسبنه' , '43471');
        options(15) = new Option('بندرانزلي' , '431');
        options(16) = new Option('پاشاكي' , '44331');
        options(17) = new Option('پرهسر' , '43861');
        options(18) = new Option('پلاسي' , '43791');
        options(19) = new Option('پونل' , '44992');
        options(20) = new Option('پيربست لولمان' , '43441');
        options(21) = new Option('توتكابن' , '44651');
        options(22) = new Option('جوكندان' , '43751');
        options(23) = new Option('جيرنده' , '44551');
        options(24) = new Option('چابكسر' , '44871');
        options(25) = new Option('چاپارخانه' , '43481');
        options(26) = new Option('چوبر' , '43561');
        options(27) = new Option('خاچكين' , '43451');
        options(28) = new Option('خشك بيجار' , '43391');
        options(29) = new Option('خطبه سرا' , '43771');
        options(30) = new Option('خمام' , '4341');
        options(31) = new Option('ديلمان' , '44391');
        options(32) = new Option('رانكوه' , '44861');
        options(33) = new Option('رحيم آباد' , '44931');
        options(34) = new Option('رستم آباد' , '44641');
        options(35) = new Option('رشت' , '41');
        options(36) = new Option('رضوان شهر' , '43841');
        options(37) = new Option('رودبار' , '4461');
        options(38) = new Option('رودسر' , '4481');
        options(39) = new Option('سراوان' , '43381');
        options(40) = new Option('سنگر' , '43361');
        options(41) = new Option('سياهكل' , '4431');
        options(42) = new Option('شاندرمن' , '43851');
        options(43) = new Option('شفت' , '43541');
        options(44) = new Option('صومعه سرا' , '4361');
        options(45) = new Option('طاهر گوداب' , '43651');
        options(46) = new Option('طوللات' , '44851');
        options(47) = new Option('فومن' , '4351');
        options(48) = new Option('قاسم آبادسفلي' , '44831');
        options(49) = new Option('كپورچال' , '43331');
        options(50) = new Option('كلاچاي' , '4491');
        options(51) = new Option('كوچصفهان' , '43461');
        options(52) = new Option('كومله' , '44761');
        options(53) = new Option('كياشهر' , '44471');
        options(54) = new Option('گشت' , '43581');
        options(55) = new Option('لاهيجان' , '441');
        options(56) = new Option('لشت نشا' , '43431');
        options(57) = new Option('لنگرود' , '4471');
        options(58) = new Option('لوشان' , '44531');
        options(59) = new Option('لولمان' , '43531');
        options(60) = new Option('لوندويل' , '43961');
        options(61) = new Option('ليسار' , '43761');
        options(62) = new Option('ماسال' , '4381');
        options(63) = new Option('ماسوله' , '43571');
        options(64) = new Option('منجيل' , '4451');
        options(65) = new Option('هشتپر ـ طوالش' , '4371');
        options(66) = new Option('واجارگاه' , '44891');
    }
    if(state == 3)
    {
        options(0) = new Option('لطفا شهر را انتخاب نمایید' , '0');
        options(1) = new Option('ابشاحمد' , '54671');
        options(2) = new Option('اذغان' , '54561');
        options(3) = new Option('اسب فروشان' , '54731');
        options(4) = new Option('اسكو' , '5351');
        options(5) = new Option('اغچه ريش' , '5586');
        options(6) = new Option('اقمنار' , '55661');
        options(7) = new Option('القو' , '55541');
        options(8) = new Option('اهر' , '5451');
        options(9) = new Option('ايلخچي' , '53581');
        options(10) = new Option('آذرشهر' , '5371');
        options(11) = new Option('باسمنج' , '53661');
        options(12) = new Option('بخشايش ـ كلوانق' , '53951');
        options(13) = new Option('بستان آباد' , '5491');
        options(14) = new Option('بناب' , '5551');
        options(15) = new Option('بناب جديد ـ مرند' , '54351');
        options(16) = new Option('تبريز' , '51');
        options(17) = new Option('ترك' , '53331');
        options(18) = new Option('تسوج' , '53881');
        options(19) = new Option('جلفا' , '5441');
        options(20) = new Option('خامنه' , '53841');
        options(21) = new Option('خداآفرين' , '54683');
        options(22) = new Option('خسروشهر' , '53551');
        options(23) = new Option('خضرلو' , '55441');
        options(24) = new Option('خلجان' , '53641');
        options(25) = new Option('سبلان' , '5321');
        options(26) = new Option('سراب' , '5471');
        options(27) = new Option('سردرود' , '5361');
        options(28) = new Option('سيس' , '53851');
        options(29) = new Option('شادبادمشايخ' , '53671');
        options(30) = new Option('شبستر' , '5381');
        options(31) = new Option('شربيان' , '54751');
        options(32) = new Option('شرفخانه' , '53891');
        options(33) = new Option('شهر جديد سهند' , '5331');
        options(34) = new Option('صوفيان' , '53861');
        options(35) = new Option('عجب شير' , '5541');
        options(36) = new Option('قره اغاج ـ چاراويماق' , '5581');
        options(37) = new Option('قره بابا' , '54941');
        options(38) = new Option('كردكندي' , '54971');
        options(39) = new Option('كليبر' , '5461');
        options(40) = new Option('كندرود' , '53681');
        options(41) = new Option('كندوان' , '54685');
        options(42) = new Option('گوگان' , '53761');
        options(43) = new Option('مراغه' , '551');
        options(44) = new Option('مرند' , '541');
        options(45) = new Option('ملكان' , '5561');
        options(46) = new Option('ممقان' , '53751');
        options(47) = new Option('ميانه' , '531');
        options(48) = new Option('هاديشهر' , '5431');
        options(49) = new Option('هريس' , '5391');
        options(50) = new Option('هشترود' , '5571');
        options(51) = new Option('هوراند' , '54491');
        options(52) = new Option('ورزقان' , '54581');   
}
}

i wrote a plugin using bootstrap and php and i want to have above code in my plugin in a page of my website.
i used wp_eque(), custom plugins, and cdn’s and function.php and …..
finally i realized the problem is only with my theme. and i cant change my theme at all.
i would be really thankful if someone helps me.
thank you.

TheToro ▷El WordPress theme more optimized for SEO and Adsense | Proxies123.com

JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.


The toro is a WordPress theme that is specially designed to IMPROVE your website’s rankings with perfect optimization, totally clean code and fully optimized CSS.

The numbers don’t lie

We’re not going to deceive you like others… We are realists and we know that a theme does not get you to the TOP #1 by itself, but it is a GREAT IMPULSE and more if it is the Thetoro. You can see a simple comparison of all the optimizations we have compared to those “SEO Gurus” plain text templates here a little comparison of the full CSS that The toro has compared to those “SEO”

O” Themes and try a theme that will really give you the results you expect in all senses, I’m not a fume seller I have over 15 years working in web design and development (I didn’t become an expert in 2 years) I work and learn every day with more than a thousand projects on my back all my clients are in the top #1 in Google in their different categories, languages and countries and I was advised by them in the creation of the theme that will continue to improve.

Thetoro in action

You will notice that your traffic will increase exponentially and you will also dominate the SERPs of your entire niche or sector.

More reasons to choose TheToro

  • Fully optimized template for SEO.
  • Unsurpassed speed, check it out in the demo. (We don’t use cache plugin)
  • 100% optimized code, clean, light and perfect for your project.
  • We integrate the beloved clusters natively into The Toro.
  • Fully responsive design.
  • Spectacular UX design with enviable customization; NO EXTERNAL EDITORS!

Also, we include extras that will make your WordPress not need thousands of extra plugins

  • We add Cookie notification
  • Fully optimized breadcrumbs
  • Customizable social buttons
  • Related entries
  • Mobile-optimized menu

20% PERMANENT DISCOUNT
EXCLUSIVE FOR WJUNCTION USING THE FOLLOWING CODE



 

I will install WordPress, theme setup, demo Upload, Speed Up And Do customization for $10

I will install WordPress, theme setup, demo Upload, Speed Up And Do customization

Hi,

If you are looking for an expert developer to setup WordPress or to develop your current website, then you are in right place
.In this gig, I’ll install WordPress on your server and setup your desired theme. I’ll also customize your theme as your requirement.I have already customized so many WordPress themes and you don’t need to worry about my quality of service. I hope I can satisfy you and deliver your work on your desired time frame.
order now with confidence…

::You Will Get::

  • WordPress Install
  • Database setup
  • WordPress Theme Install
  • Content Upload
  • Demo Upload Theme Setup & Customize
  • Plugins Setup
  • Full Theme Customization
  • Speed Up
  • Customizing Font, Size & Colors
  • Bug Fixing
  • Contact Form
  • 8 Plugins/Extensions

::Why Choose Me::

  • fast communication
  • quick delivery
  • satisfaction Guaranteed

Your Satisfaction Is My Goal
::Thank You::

.