Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author Ben Sibley

    (@bensibley)

    This could be done with a child theme, but it’s going to be a bit complex. If you’re comfortable working with PHP and child themes, I can give you an overview of how it could be done. Otherwise, I would recommend hiring someone via codeable.io. They’ll connect you with a WordPress developer who can make this customization for you, and they are very quick about it too.

    Thread Starter leokoltm

    (@leokoltm)

    Well. Tell me as to make it most! I will try

    Theme Author Ben Sibley

    (@bensibley)

    Sure, to do this you’ll want to copy the content-archive.php file from Tracks into your child theme. Then in the content-archive.php file in your child theme, you would add the code for including the ad at the bottom. This would then include the ad after every post on the blog and archive pages.

    The last step would be styling it with CSS, to improve the way it looks between the posts.

    Thread Starter leokoltm

    (@leokoltm)

    There is another issue . In the index.php file , each line is not closed a tag <? Php. I need to paste the code , which is closed <? Php tag on each line . What do I need to change in my code ?

    For example, instead
    if (have_posts ()): while (have_posts ()): the_post ();
    to insert
    <? php $ postcount = 0 ; ? >
    <? php if (have_posts ()): while (have_posts ()): the_post (); ? >
    <? php $ postcount ++; ? > .
    How to do it to the theme of work?

    Thread Starter leokoltm

    (@leokoltm)

    If you insert code without <? Php, then nothing works

    Theme Author Ben Sibley

    (@bensibley)

    Once a PHP opening tag is added, the following code will be read as PHP. There doesn’t need to be an opening tag on each line.

    If you look at the index.php file in Tracks, you’ll see an opening PHP tag (<?php) on line 3. All of the code after the opening tag is run as PHP until the tag is closed (?>) on line 77 after the loop.

    Thread Starter leokoltm

    (@leokoltm)

    Thanks for the help!

    Theme Author Ben Sibley

    (@bensibley)

    You’re welcome ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Advertising’ is closed to new replies.