INDEX.PHP customization

Hello guys,

I wanted to add a parallax section like the one i can add to any section in pro. i created it in PRO and then just copied the html afterwards. now, this is just a quick test, i can recreate the parallax effect with vanilla html+css afterwards but my main concern is that the content doesn’t show, even after i add it in the _index.php file inside the child theme’s directory ( /framework/views/global). i can only guess that the folder i added it in is not the right one so can you please enlighten me?

i don’t want you to make any code whatsoever, just tell me which file must i edit in order to place the content in the archive and blog index.

Thanks!

Hi there,

The file used for the blog index page should be the _index.php file that is in /wp-content/themes/x/framework/views/global/.

Please double check that you have added the file in the correct directory that is in /wp-content/themes/x-chil/framework/views/global/_index.php.

In case you are still not able to display what you have added in the file, please provide us with the FTP details of your site and the link to the page so that we can check.

Thank you.

OK, now i see it, the problem was that i put the code in the wrong condition (masondry instead of standard), there’s another issue now, though, how can i put it in the archive and index.php in a way that it’s on top of the entire page (content left, sidebar-right).

i want it to look like this:


custom section

content | sidebar |
left | right |
| |

should i put it at the end of the header instead and only show it if isblog or isarchive, instead?
if that is the case (and i suspect it is), which file should i modify? i see both base and masthead in the header folder.

Nevermind guys, i just solved the issue.

For future readers, you can put your code into “masthead.php” after the tag (remember to add a conditional checking if it’s the desired page, otherwise you’ll add the code in every page)

thanks!

Glad to hear you got it sorted and thanks for sharing the solution.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.