Lengkap

Create a Javascript Code that removes a column of a table in wordpress

I have a WordPress website that uses the WP Ninja Tables Pro Plugin to show tables. Every table has a header (left column) and one other column with content (see link example: [login to view URL]).

Now I inserted a snippet that shows Ads into one column which is called "Anzeige". However, the header of the column (green part) needs to disappear, so that the Ad content is bigger (especially on mobile).

The final result should look like the screenshots 1 and 2 that I added.

I already had a developer that created this code that I inserted before <body>:

<script>

function removeAnzeigeColumns(){

let all_ths = [login to view URL]('th');

let anzeige_ths = [];

[login to view URL]('Running function Anzeige ..')

for(let i = 0; i < [login to view URL]; i++){

try{

if(all_ths[i].textContent == 'Anzeige' || all_ths[i].textContent == 'Anzeige 1' || all_ths[i].textContent == 'Anzeige 2'){

[login to view URL](all_ths[i]);

}

} catch(err) {

}

}

for(let i = 0; i < [login to view URL]; i++){

let th_sibling = anzeige_ths[i].nextElementSibling;

try{

[login to view URL]('colspan', '2');

anzeige_ths[i].[login to view URL](anzeige_ths[i]);

} catch (e){

}

}

}

[login to view URL]('DOMContentLoaded', function(e){

setTimeout(function(){

removeAnzeigeColumns()

let table_links = [login to view URL]('.footable-page-link');

for(let i = 0; i < [login to view URL]; i++){

table_links[i].addEventListener('click', function(){

setTimeout(function(){removeAnzeigeColumns()},2000)

});

}

let selects = [login to view URL]('select');

for(let i = 0; i < [login to view URL]; i++){

selects[i].addEventListener('change', function(){

setTimeout(function(){removeAnzeigeColumns()},4000);

});

}

},3300);

});

</script>

However, with this code the column only disappears in the beginning when the page loads but when I use the filtering function on top or the pagination of the table, everything is messed up.

Unfortunately I cannot share access to the wordpress site so you need to solve the problem with "inspect element" and send me the code which I can then implement and you can test it.

Either you fix the code from the previous developer (see above) or you create a new one.

Kemahiran: Wordpress, JavaScript, PHP, CSS, HTML

Lihat lagi: integrate wordpress blog website javascript, wordpress php create custom code, create javascript popup link wordpress, 8220 inserted javascript code wordpress, database create javascript code, javascript code freeze span table header, wordpress support javascript code popup plugin, create table in wordpress plugin, create database table in wordpress without plugin, create table in wordpress without plugin, how to create coupon code in wordpress, how to create table in wordpress without plugin, create database table in wordpress plugin, create pros and cons table in wordpress, how to create data table in wordpress, javascript code add in wordpress, how to create custom code in wordpress, create table in wordpress, create with code wordpress, wordpress create with code

Tentang Majikan:
( 6 ulasan ) Ettlingen, Germany

ID Projek: #29965317

Dianugerahkan kepada:

nemanjadj20

Hello? I have worked on Wordpress theme/plugin projects to what you are looking for, and I am confident I can exceed your expectations. I have attached samples of work very similar to what you are seeking. - xlsx Lagi

€155 EUR dalam 3 hari
(51 Ulasan)
6.3

18 pekerja bebas membida secara purata €131 untuk pekerjaan ini

engrteto

I believe in quality and professionalism. I am highly skilled in ASP.NET, C#, PHP, MySql, WordPress, WooCommerce, Open Cart, Magento, Laravel, UI/UX design (Web + Mobile Apps), HTML5, CSS3, Bootstrap 4, Jquery, Ajax, S Lagi

€200 EUR dalam 5 hari
(187 Ulasan)
7.7
caciocode

Hi, I am a Wordpress & JavaScript developer. I can create JavaScript code to remove the green part next to the ad.

€50 EUR dalam sehari
(294 Ulasan)
6.9
SBITServices

Hi , I have read your description and understood your requirement. .I have 5 years experience in word press and worked with nearly 350+ websites. Check my reviews to confirm my work quality. Please check websites dev Lagi

€80 EUR dalam 2 hari
(116 Ulasan)
6.4
(47 Ulasan)
6.1
alihassan321

Hi, I am full stack developer having 8+ yrs experience. I have reviewed description of your project. I can do this job, I can provide you code to add it on server. I can start work now. Thanks

€100 EUR dalam 2 hari
(52 Ulasan)
5.9
d1master

Hi there. I am an experienced expert in PHP/WordPRess I am certainly confident I can perfectly meet your requirements. If you hire me, you will be happy with excellent work, high quality, and a short period. My budget Lagi

€150 EUR dalam 2 hari
(21 Ulasan)
5.6
DeveloperKatya

Hi, Hope you are doing well! Thanks for sharing your project requirement with me. As a highly skilled Full-Stack developer, I can help you perfectly. I am very confident with my skills and I'd like to help your busines Lagi

€100 EUR dalam sehari
(7 Ulasan)
4.9
dmsuponkin

Hi I have just gone through your post more carefully, and I understand all of your requirements. I can start working right now, I will complete it in a day. I am a senior Web Developer with more than 10+ years of exp Lagi

€50 EUR dalam 7 hari
(5 Ulasan)
4.9
deductivedesign1

Good to see you! I am available now to discuss the project! I am skilled WordPress Developer and I use WordPress and Adobe Illustrator to craft the designs with skills including HTML, CSS, PHP, WordPress and JavaScri Lagi

€155 EUR dalam 4 hari
(1 Ulasan)
4.5
vladilavsuhovoy1

Hi, How are you? I am really interested in your project, " Create a Javascript Code that removes a column of a table in wordpress". I’m an experienced developer in Wordpress. I have rich experiences in PHP, JavaScri Lagi

€150 EUR dalam 5 hari
(13 Ulasan)
4.3
lehakrizhik02

Hi. Dear client. I have read about your project and made a good understand. I am full stack developer and I have long-term experience in Website Design, WordPress, PHP frameworks such as ( Laravel , CodeIgniter, and Yi Lagi

€250 EUR dalam 4 hari
(4 Ulasan)
3.2
arpitatophat

Hello, I have just gone through your existing code. I can fix the code. Okay no problem i can solve the problem with "inspect element" and send you the code I I have over 6 years of working experience as a Laravel Lagi

€250 EUR dalam 3 hari
(1 Ulasan)
1.9
parassharmadevel

Hi, Thanks for sharing your PHP-based application requirement here at Freelancer and I will be more than happy to help you. Let me share with you my expertise in PHP development. Developer with more than 6 years of exp Lagi

€100 EUR dalam sehari
(2 Ulasan)
1.3
devloperravinde9

Hi I'll add an E-commerce section to your website. I've created many E-commerce sites, links are below. I know how to create a professional site. It'll be responsive and compatible with all mobiles, laptops, and in all Lagi

€140 EUR dalam 7 hari
(2 Ulasan)
1.4
ognjenstev00

Hi, I'm a jQuery and WordPress expert and FULL Time Developer. I have checked your requirements carefully. I have rich experience in WordPress, PHP, Website design, CSS, Javascript, etc. I can start work immediate Lagi

€100 EUR dalam sehari
(0 Ulasan)
0.0
ahmedrazaidrees9

Hi, Hope you are doing well, I just read your description that you are looking for a WordPress Developer. I am a Full Stack Developer, meaning that i have already worked on different projects. Contact me for more info Lagi

€60 EUR dalam sehari
(0 Ulasan)
0.0
aishahaseeb687

Hi, I am ready to create a WordPress website with ninja tables Pro Plugin to show tables including header and column with content, I will create a SEO ready, pixel perfect and user friendly website for your business, Lagi

€110 EUR dalam 3 hari
(0 Ulasan)
0.0