Completed

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.

Skills: WordPress, JavaScript, PHP, CSS, HTML

See more: 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

About the Employer:
( 6 reviews ) Ettlingen, Germany

Project ID: #29965317

Awarded to:

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 More

€155 EUR in 3 days
(51 Reviews)
6.3

18 freelancers are bidding on average €131 for this job

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 More

€200 EUR in 5 days
(187 Reviews)
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 in 1 day
(294 Reviews)
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 More

€80 EUR in 2 days
(116 Reviews)
6.4
(47 Reviews)
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 in 2 days
(52 Reviews)
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 More

€150 EUR in 2 days
(21 Reviews)
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 More

€100 EUR in 1 day
(7 Reviews)
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 More

€50 EUR in 7 days
(5 Reviews)
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 More

€155 EUR in 4 days
(1 Review)
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 More

€150 EUR in 5 days
(13 Reviews)
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 More

€250 EUR in 4 days
(4 Reviews)
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 More

€250 EUR in 3 days
(1 Review)
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 More

€100 EUR in 1 day
(2 Reviews)
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 More

€140 EUR in 7 days
(2 Reviews)
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 More

€100 EUR in 1 day
(0 Reviews)
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 More

€60 EUR in 1 day
(0 Reviews)
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, More

€110 EUR in 3 days
(0 Reviews)
0.0